@aws-sdk/client-cloudwatch-logs 3.441.0 → 3.448.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +120 -0
  2. package/dist-cjs/CloudWatchLogs.js +30 -0
  3. package/dist-cjs/commands/CreateDeliveryCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteDeliveryCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteDeliveryDestinationCommand.js +51 -0
  6. package/dist-cjs/commands/DeleteDeliveryDestinationPolicyCommand.js +51 -0
  7. package/dist-cjs/commands/DeleteDeliverySourceCommand.js +51 -0
  8. package/dist-cjs/commands/DescribeDeliveriesCommand.js +51 -0
  9. package/dist-cjs/commands/DescribeDeliveryDestinationsCommand.js +51 -0
  10. package/dist-cjs/commands/DescribeDeliverySourcesCommand.js +51 -0
  11. package/dist-cjs/commands/GetDeliveryCommand.js +51 -0
  12. package/dist-cjs/commands/GetDeliveryDestinationCommand.js +51 -0
  13. package/dist-cjs/commands/GetDeliveryDestinationPolicyCommand.js +51 -0
  14. package/dist-cjs/commands/GetDeliverySourceCommand.js +51 -0
  15. package/dist-cjs/commands/PutDeliveryDestinationCommand.js +51 -0
  16. package/dist-cjs/commands/PutDeliveryDestinationPolicyCommand.js +51 -0
  17. package/dist-cjs/commands/PutDeliverySourceCommand.js +51 -0
  18. package/dist-cjs/commands/index.js +15 -0
  19. package/dist-cjs/models/models_0.js +78 -1
  20. package/dist-cjs/pagination/DescribeDeliveriesPaginator.js +29 -0
  21. package/dist-cjs/pagination/DescribeDeliveryDestinationsPaginator.js +29 -0
  22. package/dist-cjs/pagination/DescribeDeliverySourcesPaginator.js +29 -0
  23. package/dist-cjs/pagination/index.js +3 -0
  24. package/dist-cjs/protocols/Aws_json1_1.js +887 -74
  25. package/dist-es/CloudWatchLogs.js +30 -0
  26. package/dist-es/commands/CreateDeliveryCommand.js +47 -0
  27. package/dist-es/commands/DeleteDeliveryCommand.js +47 -0
  28. package/dist-es/commands/DeleteDeliveryDestinationCommand.js +47 -0
  29. package/dist-es/commands/DeleteDeliveryDestinationPolicyCommand.js +47 -0
  30. package/dist-es/commands/DeleteDeliverySourceCommand.js +47 -0
  31. package/dist-es/commands/DescribeDeliveriesCommand.js +47 -0
  32. package/dist-es/commands/DescribeDeliveryDestinationsCommand.js +47 -0
  33. package/dist-es/commands/DescribeDeliverySourcesCommand.js +47 -0
  34. package/dist-es/commands/GetDeliveryCommand.js +47 -0
  35. package/dist-es/commands/GetDeliveryDestinationCommand.js +47 -0
  36. package/dist-es/commands/GetDeliveryDestinationPolicyCommand.js +47 -0
  37. package/dist-es/commands/GetDeliverySourceCommand.js +47 -0
  38. package/dist-es/commands/PutDeliveryDestinationCommand.js +47 -0
  39. package/dist-es/commands/PutDeliveryDestinationPolicyCommand.js +47 -0
  40. package/dist-es/commands/PutDeliverySourceCommand.js +47 -0
  41. package/dist-es/commands/index.js +15 -0
  42. package/dist-es/models/models_0.js +72 -0
  43. package/dist-es/pagination/DescribeDeliveriesPaginator.js +25 -0
  44. package/dist-es/pagination/DescribeDeliveryDestinationsPaginator.js +25 -0
  45. package/dist-es/pagination/DescribeDeliverySourcesPaginator.js +25 -0
  46. package/dist-es/pagination/index.js +3 -0
  47. package/dist-es/protocols/Aws_json1_1.js +854 -71
  48. package/dist-types/CloudWatchLogs.d.ts +105 -0
  49. package/dist-types/CloudWatchLogsClient.d.ts +17 -2
  50. package/dist-types/commands/CreateDeliveryCommand.d.ts +142 -0
  51. package/dist-types/commands/DeleteDeliveryCommand.d.ts +91 -0
  52. package/dist-types/commands/DeleteDeliveryDestinationCommand.d.ts +92 -0
  53. package/dist-types/commands/DeleteDeliveryDestinationPolicyCommand.d.ts +84 -0
  54. package/dist-types/commands/DeleteDeliverySourceCommand.d.ts +92 -0
  55. package/dist-types/commands/DescribeDeliveriesCommand.d.ts +98 -0
  56. package/dist-types/commands/DescribeDeliveryDestinationsCommand.d.ts +100 -0
  57. package/dist-types/commands/DescribeDeliverySourcesCommand.d.ts +100 -0
  58. package/dist-types/commands/GetDeliveryCommand.d.ts +101 -0
  59. package/dist-types/commands/GetDeliveryDestinationCommand.d.ts +99 -0
  60. package/dist-types/commands/GetDeliveryDestinationPolicyCommand.d.ts +86 -0
  61. package/dist-types/commands/GetDeliverySourceCommand.d.ts +99 -0
  62. package/dist-types/commands/GetQueryResultsCommand.d.ts +2 -1
  63. package/dist-types/commands/PutDeliveryDestinationCommand.d.ts +145 -0
  64. package/dist-types/commands/PutDeliveryDestinationPolicyCommand.d.ts +118 -0
  65. package/dist-types/commands/PutDeliverySourceCommand.d.ts +142 -0
  66. package/dist-types/commands/index.d.ts +15 -0
  67. package/dist-types/index.d.ts +2 -0
  68. package/dist-types/models/models_0.d.ts +635 -0
  69. package/dist-types/pagination/DescribeDeliveriesPaginator.d.ts +7 -0
  70. package/dist-types/pagination/DescribeDeliveryDestinationsPaginator.d.ts +7 -0
  71. package/dist-types/pagination/DescribeDeliverySourcesPaginator.d.ts +7 -0
  72. package/dist-types/pagination/index.d.ts +3 -0
  73. package/dist-types/protocols/Aws_json1_1.d.ts +135 -0
  74. package/dist-types/ts3.4/CloudWatchLogs.d.ts +255 -0
  75. package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +90 -0
  76. package/dist-types/ts3.4/commands/CreateDeliveryCommand.d.ts +38 -0
  77. package/dist-types/ts3.4/commands/DeleteDeliveryCommand.d.ts +33 -0
  78. package/dist-types/ts3.4/commands/DeleteDeliveryDestinationCommand.d.ts +38 -0
  79. package/dist-types/ts3.4/commands/DeleteDeliveryDestinationPolicyCommand.d.ts +38 -0
  80. package/dist-types/ts3.4/commands/DeleteDeliverySourceCommand.d.ts +37 -0
  81. package/dist-types/ts3.4/commands/DescribeDeliveriesCommand.d.ts +39 -0
  82. package/dist-types/ts3.4/commands/DescribeDeliveryDestinationsCommand.d.ts +42 -0
  83. package/dist-types/ts3.4/commands/DescribeDeliverySourcesCommand.d.ts +42 -0
  84. package/dist-types/ts3.4/commands/GetDeliveryCommand.d.ts +35 -0
  85. package/dist-types/ts3.4/commands/GetDeliveryDestinationCommand.d.ts +42 -0
  86. package/dist-types/ts3.4/commands/GetDeliveryDestinationPolicyCommand.d.ts +42 -0
  87. package/dist-types/ts3.4/commands/GetDeliverySourceCommand.d.ts +39 -0
  88. package/dist-types/ts3.4/commands/PutDeliveryDestinationCommand.d.ts +42 -0
  89. package/dist-types/ts3.4/commands/PutDeliveryDestinationPolicyCommand.d.ts +42 -0
  90. package/dist-types/ts3.4/commands/PutDeliverySourceCommand.d.ts +39 -0
  91. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  92. package/dist-types/ts3.4/index.d.ts +2 -0
  93. package/dist-types/ts3.4/models/models_0.d.ts +173 -0
  94. package/dist-types/ts3.4/pagination/DescribeDeliveriesPaginator.d.ts +11 -0
  95. package/dist-types/ts3.4/pagination/DescribeDeliveryDestinationsPaginator.d.ts +11 -0
  96. package/dist-types/ts3.4/pagination/DescribeDeliverySourcesPaginator.d.ts +11 -0
  97. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  98. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +180 -0
  99. package/package.json +4 -4
@@ -2,11 +2,16 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { CloudWatchLogsClient } from "./CloudWatchLogsClient";
3
3
  import { AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput } from "./commands/AssociateKmsKeyCommand";
4
4
  import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "./commands/CancelExportTaskCommand";
5
+ import { CreateDeliveryCommandInput, CreateDeliveryCommandOutput } from "./commands/CreateDeliveryCommand";
5
6
  import { CreateExportTaskCommandInput, CreateExportTaskCommandOutput } from "./commands/CreateExportTaskCommand";
6
7
  import { CreateLogGroupCommandInput, CreateLogGroupCommandOutput } from "./commands/CreateLogGroupCommand";
7
8
  import { CreateLogStreamCommandInput, CreateLogStreamCommandOutput } from "./commands/CreateLogStreamCommand";
8
9
  import { DeleteAccountPolicyCommandInput, DeleteAccountPolicyCommandOutput } from "./commands/DeleteAccountPolicyCommand";
9
10
  import { DeleteDataProtectionPolicyCommandInput, DeleteDataProtectionPolicyCommandOutput } from "./commands/DeleteDataProtectionPolicyCommand";
11
+ import { DeleteDeliveryCommandInput, DeleteDeliveryCommandOutput } from "./commands/DeleteDeliveryCommand";
12
+ import { DeleteDeliveryDestinationCommandInput, DeleteDeliveryDestinationCommandOutput } from "./commands/DeleteDeliveryDestinationCommand";
13
+ import { DeleteDeliveryDestinationPolicyCommandInput, DeleteDeliveryDestinationPolicyCommandOutput } from "./commands/DeleteDeliveryDestinationPolicyCommand";
14
+ import { DeleteDeliverySourceCommandInput, DeleteDeliverySourceCommandOutput } from "./commands/DeleteDeliverySourceCommand";
10
15
  import { DeleteDestinationCommandInput, DeleteDestinationCommandOutput } from "./commands/DeleteDestinationCommand";
11
16
  import { DeleteLogGroupCommandInput, DeleteLogGroupCommandOutput } from "./commands/DeleteLogGroupCommand";
12
17
  import { DeleteLogStreamCommandInput, DeleteLogStreamCommandOutput } from "./commands/DeleteLogStreamCommand";
@@ -16,6 +21,9 @@ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } f
16
21
  import { DeleteRetentionPolicyCommandInput, DeleteRetentionPolicyCommandOutput } from "./commands/DeleteRetentionPolicyCommand";
17
22
  import { DeleteSubscriptionFilterCommandInput, DeleteSubscriptionFilterCommandOutput } from "./commands/DeleteSubscriptionFilterCommand";
18
23
  import { DescribeAccountPoliciesCommandInput, DescribeAccountPoliciesCommandOutput } from "./commands/DescribeAccountPoliciesCommand";
24
+ import { DescribeDeliveriesCommandInput, DescribeDeliveriesCommandOutput } from "./commands/DescribeDeliveriesCommand";
25
+ import { DescribeDeliveryDestinationsCommandInput, DescribeDeliveryDestinationsCommandOutput } from "./commands/DescribeDeliveryDestinationsCommand";
26
+ import { DescribeDeliverySourcesCommandInput, DescribeDeliverySourcesCommandOutput } from "./commands/DescribeDeliverySourcesCommand";
19
27
  import { DescribeDestinationsCommandInput, DescribeDestinationsCommandOutput } from "./commands/DescribeDestinationsCommand";
20
28
  import { DescribeExportTasksCommandInput, DescribeExportTasksCommandOutput } from "./commands/DescribeExportTasksCommand";
21
29
  import { DescribeLogGroupsCommandInput, DescribeLogGroupsCommandOutput } from "./commands/DescribeLogGroupsCommand";
@@ -28,6 +36,10 @@ import { DescribeSubscriptionFiltersCommandInput, DescribeSubscriptionFiltersCom
28
36
  import { DisassociateKmsKeyCommandInput, DisassociateKmsKeyCommandOutput } from "./commands/DisassociateKmsKeyCommand";
29
37
  import { FilterLogEventsCommandInput, FilterLogEventsCommandOutput } from "./commands/FilterLogEventsCommand";
30
38
  import { GetDataProtectionPolicyCommandInput, GetDataProtectionPolicyCommandOutput } from "./commands/GetDataProtectionPolicyCommand";
39
+ import { GetDeliveryCommandInput, GetDeliveryCommandOutput } from "./commands/GetDeliveryCommand";
40
+ import { GetDeliveryDestinationCommandInput, GetDeliveryDestinationCommandOutput } from "./commands/GetDeliveryDestinationCommand";
41
+ import { GetDeliveryDestinationPolicyCommandInput, GetDeliveryDestinationPolicyCommandOutput } from "./commands/GetDeliveryDestinationPolicyCommand";
42
+ import { GetDeliverySourceCommandInput, GetDeliverySourceCommandOutput } from "./commands/GetDeliverySourceCommand";
31
43
  import { GetLogEventsCommandInput, GetLogEventsCommandOutput } from "./commands/GetLogEventsCommand";
32
44
  import { GetLogGroupFieldsCommandInput, GetLogGroupFieldsCommandOutput } from "./commands/GetLogGroupFieldsCommand";
33
45
  import { GetLogRecordCommandInput, GetLogRecordCommandOutput } from "./commands/GetLogRecordCommand";
@@ -36,6 +48,9 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
36
48
  import { ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput } from "./commands/ListTagsLogGroupCommand";
37
49
  import { PutAccountPolicyCommandInput, PutAccountPolicyCommandOutput } from "./commands/PutAccountPolicyCommand";
38
50
  import { PutDataProtectionPolicyCommandInput, PutDataProtectionPolicyCommandOutput } from "./commands/PutDataProtectionPolicyCommand";
51
+ import { PutDeliveryDestinationCommandInput, PutDeliveryDestinationCommandOutput } from "./commands/PutDeliveryDestinationCommand";
52
+ import { PutDeliveryDestinationPolicyCommandInput, PutDeliveryDestinationPolicyCommandOutput } from "./commands/PutDeliveryDestinationPolicyCommand";
53
+ import { PutDeliverySourceCommandInput, PutDeliverySourceCommandOutput } from "./commands/PutDeliverySourceCommand";
39
54
  import { PutDestinationCommandInput, PutDestinationCommandOutput } from "./commands/PutDestinationCommand";
40
55
  import { PutDestinationPolicyCommandInput, PutDestinationPolicyCommandOutput } from "./commands/PutDestinationPolicyCommand";
41
56
  import { PutLogEventsCommandInput, PutLogEventsCommandOutput } from "./commands/PutLogEventsCommand";
@@ -64,6 +79,12 @@ export interface CloudWatchLogs {
64
79
  cancelExportTask(args: CancelExportTaskCommandInput, options?: __HttpHandlerOptions): Promise<CancelExportTaskCommandOutput>;
65
80
  cancelExportTask(args: CancelExportTaskCommandInput, cb: (err: any, data?: CancelExportTaskCommandOutput) => void): void;
66
81
  cancelExportTask(args: CancelExportTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelExportTaskCommandOutput) => void): void;
82
+ /**
83
+ * @see {@link CreateDeliveryCommand}
84
+ */
85
+ createDelivery(args: CreateDeliveryCommandInput, options?: __HttpHandlerOptions): Promise<CreateDeliveryCommandOutput>;
86
+ createDelivery(args: CreateDeliveryCommandInput, cb: (err: any, data?: CreateDeliveryCommandOutput) => void): void;
87
+ createDelivery(args: CreateDeliveryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDeliveryCommandOutput) => void): void;
67
88
  /**
68
89
  * @see {@link CreateExportTaskCommand}
69
90
  */
@@ -94,6 +115,30 @@ export interface CloudWatchLogs {
94
115
  deleteDataProtectionPolicy(args: DeleteDataProtectionPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDataProtectionPolicyCommandOutput>;
95
116
  deleteDataProtectionPolicy(args: DeleteDataProtectionPolicyCommandInput, cb: (err: any, data?: DeleteDataProtectionPolicyCommandOutput) => void): void;
96
117
  deleteDataProtectionPolicy(args: DeleteDataProtectionPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDataProtectionPolicyCommandOutput) => void): void;
118
+ /**
119
+ * @see {@link DeleteDeliveryCommand}
120
+ */
121
+ deleteDelivery(args: DeleteDeliveryCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDeliveryCommandOutput>;
122
+ deleteDelivery(args: DeleteDeliveryCommandInput, cb: (err: any, data?: DeleteDeliveryCommandOutput) => void): void;
123
+ deleteDelivery(args: DeleteDeliveryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDeliveryCommandOutput) => void): void;
124
+ /**
125
+ * @see {@link DeleteDeliveryDestinationCommand}
126
+ */
127
+ deleteDeliveryDestination(args: DeleteDeliveryDestinationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDeliveryDestinationCommandOutput>;
128
+ deleteDeliveryDestination(args: DeleteDeliveryDestinationCommandInput, cb: (err: any, data?: DeleteDeliveryDestinationCommandOutput) => void): void;
129
+ deleteDeliveryDestination(args: DeleteDeliveryDestinationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDeliveryDestinationCommandOutput) => void): void;
130
+ /**
131
+ * @see {@link DeleteDeliveryDestinationPolicyCommand}
132
+ */
133
+ deleteDeliveryDestinationPolicy(args: DeleteDeliveryDestinationPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDeliveryDestinationPolicyCommandOutput>;
134
+ deleteDeliveryDestinationPolicy(args: DeleteDeliveryDestinationPolicyCommandInput, cb: (err: any, data?: DeleteDeliveryDestinationPolicyCommandOutput) => void): void;
135
+ deleteDeliveryDestinationPolicy(args: DeleteDeliveryDestinationPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDeliveryDestinationPolicyCommandOutput) => void): void;
136
+ /**
137
+ * @see {@link DeleteDeliverySourceCommand}
138
+ */
139
+ deleteDeliverySource(args: DeleteDeliverySourceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDeliverySourceCommandOutput>;
140
+ deleteDeliverySource(args: DeleteDeliverySourceCommandInput, cb: (err: any, data?: DeleteDeliverySourceCommandOutput) => void): void;
141
+ deleteDeliverySource(args: DeleteDeliverySourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDeliverySourceCommandOutput) => void): void;
97
142
  /**
98
143
  * @see {@link DeleteDestinationCommand}
99
144
  */
@@ -148,6 +193,24 @@ export interface CloudWatchLogs {
148
193
  describeAccountPolicies(args: DescribeAccountPoliciesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAccountPoliciesCommandOutput>;
149
194
  describeAccountPolicies(args: DescribeAccountPoliciesCommandInput, cb: (err: any, data?: DescribeAccountPoliciesCommandOutput) => void): void;
150
195
  describeAccountPolicies(args: DescribeAccountPoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAccountPoliciesCommandOutput) => void): void;
196
+ /**
197
+ * @see {@link DescribeDeliveriesCommand}
198
+ */
199
+ describeDeliveries(args: DescribeDeliveriesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDeliveriesCommandOutput>;
200
+ describeDeliveries(args: DescribeDeliveriesCommandInput, cb: (err: any, data?: DescribeDeliveriesCommandOutput) => void): void;
201
+ describeDeliveries(args: DescribeDeliveriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDeliveriesCommandOutput) => void): void;
202
+ /**
203
+ * @see {@link DescribeDeliveryDestinationsCommand}
204
+ */
205
+ describeDeliveryDestinations(args: DescribeDeliveryDestinationsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDeliveryDestinationsCommandOutput>;
206
+ describeDeliveryDestinations(args: DescribeDeliveryDestinationsCommandInput, cb: (err: any, data?: DescribeDeliveryDestinationsCommandOutput) => void): void;
207
+ describeDeliveryDestinations(args: DescribeDeliveryDestinationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDeliveryDestinationsCommandOutput) => void): void;
208
+ /**
209
+ * @see {@link DescribeDeliverySourcesCommand}
210
+ */
211
+ describeDeliverySources(args: DescribeDeliverySourcesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDeliverySourcesCommandOutput>;
212
+ describeDeliverySources(args: DescribeDeliverySourcesCommandInput, cb: (err: any, data?: DescribeDeliverySourcesCommandOutput) => void): void;
213
+ describeDeliverySources(args: DescribeDeliverySourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDeliverySourcesCommandOutput) => void): void;
151
214
  /**
152
215
  * @see {@link DescribeDestinationsCommand}
153
216
  */
@@ -220,6 +283,30 @@ export interface CloudWatchLogs {
220
283
  getDataProtectionPolicy(args: GetDataProtectionPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetDataProtectionPolicyCommandOutput>;
221
284
  getDataProtectionPolicy(args: GetDataProtectionPolicyCommandInput, cb: (err: any, data?: GetDataProtectionPolicyCommandOutput) => void): void;
222
285
  getDataProtectionPolicy(args: GetDataProtectionPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDataProtectionPolicyCommandOutput) => void): void;
286
+ /**
287
+ * @see {@link GetDeliveryCommand}
288
+ */
289
+ getDelivery(args: GetDeliveryCommandInput, options?: __HttpHandlerOptions): Promise<GetDeliveryCommandOutput>;
290
+ getDelivery(args: GetDeliveryCommandInput, cb: (err: any, data?: GetDeliveryCommandOutput) => void): void;
291
+ getDelivery(args: GetDeliveryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDeliveryCommandOutput) => void): void;
292
+ /**
293
+ * @see {@link GetDeliveryDestinationCommand}
294
+ */
295
+ getDeliveryDestination(args: GetDeliveryDestinationCommandInput, options?: __HttpHandlerOptions): Promise<GetDeliveryDestinationCommandOutput>;
296
+ getDeliveryDestination(args: GetDeliveryDestinationCommandInput, cb: (err: any, data?: GetDeliveryDestinationCommandOutput) => void): void;
297
+ getDeliveryDestination(args: GetDeliveryDestinationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDeliveryDestinationCommandOutput) => void): void;
298
+ /**
299
+ * @see {@link GetDeliveryDestinationPolicyCommand}
300
+ */
301
+ getDeliveryDestinationPolicy(args: GetDeliveryDestinationPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetDeliveryDestinationPolicyCommandOutput>;
302
+ getDeliveryDestinationPolicy(args: GetDeliveryDestinationPolicyCommandInput, cb: (err: any, data?: GetDeliveryDestinationPolicyCommandOutput) => void): void;
303
+ getDeliveryDestinationPolicy(args: GetDeliveryDestinationPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDeliveryDestinationPolicyCommandOutput) => void): void;
304
+ /**
305
+ * @see {@link GetDeliverySourceCommand}
306
+ */
307
+ getDeliverySource(args: GetDeliverySourceCommandInput, options?: __HttpHandlerOptions): Promise<GetDeliverySourceCommandOutput>;
308
+ getDeliverySource(args: GetDeliverySourceCommandInput, cb: (err: any, data?: GetDeliverySourceCommandOutput) => void): void;
309
+ getDeliverySource(args: GetDeliverySourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDeliverySourceCommandOutput) => void): void;
223
310
  /**
224
311
  * @see {@link GetLogEventsCommand}
225
312
  */
@@ -268,6 +355,24 @@ export interface CloudWatchLogs {
268
355
  putDataProtectionPolicy(args: PutDataProtectionPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutDataProtectionPolicyCommandOutput>;
269
356
  putDataProtectionPolicy(args: PutDataProtectionPolicyCommandInput, cb: (err: any, data?: PutDataProtectionPolicyCommandOutput) => void): void;
270
357
  putDataProtectionPolicy(args: PutDataProtectionPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutDataProtectionPolicyCommandOutput) => void): void;
358
+ /**
359
+ * @see {@link PutDeliveryDestinationCommand}
360
+ */
361
+ putDeliveryDestination(args: PutDeliveryDestinationCommandInput, options?: __HttpHandlerOptions): Promise<PutDeliveryDestinationCommandOutput>;
362
+ putDeliveryDestination(args: PutDeliveryDestinationCommandInput, cb: (err: any, data?: PutDeliveryDestinationCommandOutput) => void): void;
363
+ putDeliveryDestination(args: PutDeliveryDestinationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutDeliveryDestinationCommandOutput) => void): void;
364
+ /**
365
+ * @see {@link PutDeliveryDestinationPolicyCommand}
366
+ */
367
+ putDeliveryDestinationPolicy(args: PutDeliveryDestinationPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutDeliveryDestinationPolicyCommandOutput>;
368
+ putDeliveryDestinationPolicy(args: PutDeliveryDestinationPolicyCommandInput, cb: (err: any, data?: PutDeliveryDestinationPolicyCommandOutput) => void): void;
369
+ putDeliveryDestinationPolicy(args: PutDeliveryDestinationPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutDeliveryDestinationPolicyCommandOutput) => void): void;
370
+ /**
371
+ * @see {@link PutDeliverySourceCommand}
372
+ */
373
+ putDeliverySource(args: PutDeliverySourceCommandInput, options?: __HttpHandlerOptions): Promise<PutDeliverySourceCommandOutput>;
374
+ putDeliverySource(args: PutDeliverySourceCommandInput, cb: (err: any, data?: PutDeliverySourceCommandOutput) => void): void;
375
+ putDeliverySource(args: PutDeliverySourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutDeliverySourceCommandOutput) => void): void;
271
376
  /**
272
377
  * @see {@link PutDestinationCommand}
273
378
  */
@@ -10,11 +10,16 @@ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration
10
10
  import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
11
11
  import { AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput } from "./commands/AssociateKmsKeyCommand";
12
12
  import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "./commands/CancelExportTaskCommand";
13
+ import { CreateDeliveryCommandInput, CreateDeliveryCommandOutput } from "./commands/CreateDeliveryCommand";
13
14
  import { CreateExportTaskCommandInput, CreateExportTaskCommandOutput } from "./commands/CreateExportTaskCommand";
14
15
  import { CreateLogGroupCommandInput, CreateLogGroupCommandOutput } from "./commands/CreateLogGroupCommand";
15
16
  import { CreateLogStreamCommandInput, CreateLogStreamCommandOutput } from "./commands/CreateLogStreamCommand";
16
17
  import { DeleteAccountPolicyCommandInput, DeleteAccountPolicyCommandOutput } from "./commands/DeleteAccountPolicyCommand";
17
18
  import { DeleteDataProtectionPolicyCommandInput, DeleteDataProtectionPolicyCommandOutput } from "./commands/DeleteDataProtectionPolicyCommand";
19
+ import { DeleteDeliveryCommandInput, DeleteDeliveryCommandOutput } from "./commands/DeleteDeliveryCommand";
20
+ import { DeleteDeliveryDestinationCommandInput, DeleteDeliveryDestinationCommandOutput } from "./commands/DeleteDeliveryDestinationCommand";
21
+ import { DeleteDeliveryDestinationPolicyCommandInput, DeleteDeliveryDestinationPolicyCommandOutput } from "./commands/DeleteDeliveryDestinationPolicyCommand";
22
+ import { DeleteDeliverySourceCommandInput, DeleteDeliverySourceCommandOutput } from "./commands/DeleteDeliverySourceCommand";
18
23
  import { DeleteDestinationCommandInput, DeleteDestinationCommandOutput } from "./commands/DeleteDestinationCommand";
19
24
  import { DeleteLogGroupCommandInput, DeleteLogGroupCommandOutput } from "./commands/DeleteLogGroupCommand";
20
25
  import { DeleteLogStreamCommandInput, DeleteLogStreamCommandOutput } from "./commands/DeleteLogStreamCommand";
@@ -24,6 +29,9 @@ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } f
24
29
  import { DeleteRetentionPolicyCommandInput, DeleteRetentionPolicyCommandOutput } from "./commands/DeleteRetentionPolicyCommand";
25
30
  import { DeleteSubscriptionFilterCommandInput, DeleteSubscriptionFilterCommandOutput } from "./commands/DeleteSubscriptionFilterCommand";
26
31
  import { DescribeAccountPoliciesCommandInput, DescribeAccountPoliciesCommandOutput } from "./commands/DescribeAccountPoliciesCommand";
32
+ import { DescribeDeliveriesCommandInput, DescribeDeliveriesCommandOutput } from "./commands/DescribeDeliveriesCommand";
33
+ import { DescribeDeliveryDestinationsCommandInput, DescribeDeliveryDestinationsCommandOutput } from "./commands/DescribeDeliveryDestinationsCommand";
34
+ import { DescribeDeliverySourcesCommandInput, DescribeDeliverySourcesCommandOutput } from "./commands/DescribeDeliverySourcesCommand";
27
35
  import { DescribeDestinationsCommandInput, DescribeDestinationsCommandOutput } from "./commands/DescribeDestinationsCommand";
28
36
  import { DescribeExportTasksCommandInput, DescribeExportTasksCommandOutput } from "./commands/DescribeExportTasksCommand";
29
37
  import { DescribeLogGroupsCommandInput, DescribeLogGroupsCommandOutput } from "./commands/DescribeLogGroupsCommand";
@@ -36,6 +44,10 @@ import { DescribeSubscriptionFiltersCommandInput, DescribeSubscriptionFiltersCom
36
44
  import { DisassociateKmsKeyCommandInput, DisassociateKmsKeyCommandOutput } from "./commands/DisassociateKmsKeyCommand";
37
45
  import { FilterLogEventsCommandInput, FilterLogEventsCommandOutput } from "./commands/FilterLogEventsCommand";
38
46
  import { GetDataProtectionPolicyCommandInput, GetDataProtectionPolicyCommandOutput } from "./commands/GetDataProtectionPolicyCommand";
47
+ import { GetDeliveryCommandInput, GetDeliveryCommandOutput } from "./commands/GetDeliveryCommand";
48
+ import { GetDeliveryDestinationCommandInput, GetDeliveryDestinationCommandOutput } from "./commands/GetDeliveryDestinationCommand";
49
+ import { GetDeliveryDestinationPolicyCommandInput, GetDeliveryDestinationPolicyCommandOutput } from "./commands/GetDeliveryDestinationPolicyCommand";
50
+ import { GetDeliverySourceCommandInput, GetDeliverySourceCommandOutput } from "./commands/GetDeliverySourceCommand";
39
51
  import { GetLogEventsCommandInput, GetLogEventsCommandOutput } from "./commands/GetLogEventsCommand";
40
52
  import { GetLogGroupFieldsCommandInput, GetLogGroupFieldsCommandOutput } from "./commands/GetLogGroupFieldsCommand";
41
53
  import { GetLogRecordCommandInput, GetLogRecordCommandOutput } from "./commands/GetLogRecordCommand";
@@ -44,6 +56,9 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
44
56
  import { ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput } from "./commands/ListTagsLogGroupCommand";
45
57
  import { PutAccountPolicyCommandInput, PutAccountPolicyCommandOutput } from "./commands/PutAccountPolicyCommand";
46
58
  import { PutDataProtectionPolicyCommandInput, PutDataProtectionPolicyCommandOutput } from "./commands/PutDataProtectionPolicyCommand";
59
+ import { PutDeliveryDestinationCommandInput, PutDeliveryDestinationCommandOutput } from "./commands/PutDeliveryDestinationCommand";
60
+ import { PutDeliveryDestinationPolicyCommandInput, PutDeliveryDestinationPolicyCommandOutput } from "./commands/PutDeliveryDestinationPolicyCommand";
61
+ import { PutDeliverySourceCommandInput, PutDeliverySourceCommandOutput } from "./commands/PutDeliverySourceCommand";
47
62
  import { PutDestinationCommandInput, PutDestinationCommandOutput } from "./commands/PutDestinationCommand";
48
63
  import { PutDestinationPolicyCommandInput, PutDestinationPolicyCommandOutput } from "./commands/PutDestinationPolicyCommand";
49
64
  import { PutLogEventsCommandInput, PutLogEventsCommandOutput } from "./commands/PutLogEventsCommand";
@@ -65,11 +80,11 @@ export { __Client };
65
80
  /**
66
81
  * @public
67
82
  */
68
- export type ServiceInputTypes = AssociateKmsKeyCommandInput | CancelExportTaskCommandInput | CreateExportTaskCommandInput | CreateLogGroupCommandInput | CreateLogStreamCommandInput | DeleteAccountPolicyCommandInput | DeleteDataProtectionPolicyCommandInput | DeleteDestinationCommandInput | DeleteLogGroupCommandInput | DeleteLogStreamCommandInput | DeleteMetricFilterCommandInput | DeleteQueryDefinitionCommandInput | DeleteResourcePolicyCommandInput | DeleteRetentionPolicyCommandInput | DeleteSubscriptionFilterCommandInput | DescribeAccountPoliciesCommandInput | DescribeDestinationsCommandInput | DescribeExportTasksCommandInput | DescribeLogGroupsCommandInput | DescribeLogStreamsCommandInput | DescribeMetricFiltersCommandInput | DescribeQueriesCommandInput | DescribeQueryDefinitionsCommandInput | DescribeResourcePoliciesCommandInput | DescribeSubscriptionFiltersCommandInput | DisassociateKmsKeyCommandInput | FilterLogEventsCommandInput | GetDataProtectionPolicyCommandInput | GetLogEventsCommandInput | GetLogGroupFieldsCommandInput | GetLogRecordCommandInput | GetQueryResultsCommandInput | ListTagsForResourceCommandInput | ListTagsLogGroupCommandInput | PutAccountPolicyCommandInput | PutDataProtectionPolicyCommandInput | PutDestinationCommandInput | PutDestinationPolicyCommandInput | PutLogEventsCommandInput | PutMetricFilterCommandInput | PutQueryDefinitionCommandInput | PutResourcePolicyCommandInput | PutRetentionPolicyCommandInput | PutSubscriptionFilterCommandInput | StartQueryCommandInput | StopQueryCommandInput | TagLogGroupCommandInput | TagResourceCommandInput | TestMetricFilterCommandInput | UntagLogGroupCommandInput | UntagResourceCommandInput;
83
+ export type ServiceInputTypes = AssociateKmsKeyCommandInput | CancelExportTaskCommandInput | CreateDeliveryCommandInput | CreateExportTaskCommandInput | CreateLogGroupCommandInput | CreateLogStreamCommandInput | DeleteAccountPolicyCommandInput | DeleteDataProtectionPolicyCommandInput | DeleteDeliveryCommandInput | DeleteDeliveryDestinationCommandInput | DeleteDeliveryDestinationPolicyCommandInput | DeleteDeliverySourceCommandInput | DeleteDestinationCommandInput | DeleteLogGroupCommandInput | DeleteLogStreamCommandInput | DeleteMetricFilterCommandInput | DeleteQueryDefinitionCommandInput | DeleteResourcePolicyCommandInput | DeleteRetentionPolicyCommandInput | DeleteSubscriptionFilterCommandInput | DescribeAccountPoliciesCommandInput | DescribeDeliveriesCommandInput | DescribeDeliveryDestinationsCommandInput | DescribeDeliverySourcesCommandInput | DescribeDestinationsCommandInput | DescribeExportTasksCommandInput | DescribeLogGroupsCommandInput | DescribeLogStreamsCommandInput | DescribeMetricFiltersCommandInput | DescribeQueriesCommandInput | DescribeQueryDefinitionsCommandInput | DescribeResourcePoliciesCommandInput | DescribeSubscriptionFiltersCommandInput | DisassociateKmsKeyCommandInput | FilterLogEventsCommandInput | GetDataProtectionPolicyCommandInput | GetDeliveryCommandInput | GetDeliveryDestinationCommandInput | GetDeliveryDestinationPolicyCommandInput | GetDeliverySourceCommandInput | GetLogEventsCommandInput | GetLogGroupFieldsCommandInput | GetLogRecordCommandInput | GetQueryResultsCommandInput | ListTagsForResourceCommandInput | ListTagsLogGroupCommandInput | PutAccountPolicyCommandInput | PutDataProtectionPolicyCommandInput | PutDeliveryDestinationCommandInput | PutDeliveryDestinationPolicyCommandInput | PutDeliverySourceCommandInput | PutDestinationCommandInput | PutDestinationPolicyCommandInput | PutLogEventsCommandInput | PutMetricFilterCommandInput | PutQueryDefinitionCommandInput | PutResourcePolicyCommandInput | PutRetentionPolicyCommandInput | PutSubscriptionFilterCommandInput | StartQueryCommandInput | StopQueryCommandInput | TagLogGroupCommandInput | TagResourceCommandInput | TestMetricFilterCommandInput | UntagLogGroupCommandInput | UntagResourceCommandInput;
69
84
  /**
70
85
  * @public
71
86
  */
72
- export type ServiceOutputTypes = AssociateKmsKeyCommandOutput | CancelExportTaskCommandOutput | CreateExportTaskCommandOutput | CreateLogGroupCommandOutput | CreateLogStreamCommandOutput | DeleteAccountPolicyCommandOutput | DeleteDataProtectionPolicyCommandOutput | DeleteDestinationCommandOutput | DeleteLogGroupCommandOutput | DeleteLogStreamCommandOutput | DeleteMetricFilterCommandOutput | DeleteQueryDefinitionCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteSubscriptionFilterCommandOutput | DescribeAccountPoliciesCommandOutput | DescribeDestinationsCommandOutput | DescribeExportTasksCommandOutput | DescribeLogGroupsCommandOutput | DescribeLogStreamsCommandOutput | DescribeMetricFiltersCommandOutput | DescribeQueriesCommandOutput | DescribeQueryDefinitionsCommandOutput | DescribeResourcePoliciesCommandOutput | DescribeSubscriptionFiltersCommandOutput | DisassociateKmsKeyCommandOutput | FilterLogEventsCommandOutput | GetDataProtectionPolicyCommandOutput | GetLogEventsCommandOutput | GetLogGroupFieldsCommandOutput | GetLogRecordCommandOutput | GetQueryResultsCommandOutput | ListTagsForResourceCommandOutput | ListTagsLogGroupCommandOutput | PutAccountPolicyCommandOutput | PutDataProtectionPolicyCommandOutput | PutDestinationCommandOutput | PutDestinationPolicyCommandOutput | PutLogEventsCommandOutput | PutMetricFilterCommandOutput | PutQueryDefinitionCommandOutput | PutResourcePolicyCommandOutput | PutRetentionPolicyCommandOutput | PutSubscriptionFilterCommandOutput | StartQueryCommandOutput | StopQueryCommandOutput | TagLogGroupCommandOutput | TagResourceCommandOutput | TestMetricFilterCommandOutput | UntagLogGroupCommandOutput | UntagResourceCommandOutput;
87
+ export type ServiceOutputTypes = AssociateKmsKeyCommandOutput | CancelExportTaskCommandOutput | CreateDeliveryCommandOutput | CreateExportTaskCommandOutput | CreateLogGroupCommandOutput | CreateLogStreamCommandOutput | DeleteAccountPolicyCommandOutput | DeleteDataProtectionPolicyCommandOutput | DeleteDeliveryCommandOutput | DeleteDeliveryDestinationCommandOutput | DeleteDeliveryDestinationPolicyCommandOutput | DeleteDeliverySourceCommandOutput | DeleteDestinationCommandOutput | DeleteLogGroupCommandOutput | DeleteLogStreamCommandOutput | DeleteMetricFilterCommandOutput | DeleteQueryDefinitionCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteSubscriptionFilterCommandOutput | DescribeAccountPoliciesCommandOutput | DescribeDeliveriesCommandOutput | DescribeDeliveryDestinationsCommandOutput | DescribeDeliverySourcesCommandOutput | DescribeDestinationsCommandOutput | DescribeExportTasksCommandOutput | DescribeLogGroupsCommandOutput | DescribeLogStreamsCommandOutput | DescribeMetricFiltersCommandOutput | DescribeQueriesCommandOutput | DescribeQueryDefinitionsCommandOutput | DescribeResourcePoliciesCommandOutput | DescribeSubscriptionFiltersCommandOutput | DisassociateKmsKeyCommandOutput | FilterLogEventsCommandOutput | GetDataProtectionPolicyCommandOutput | GetDeliveryCommandOutput | GetDeliveryDestinationCommandOutput | GetDeliveryDestinationPolicyCommandOutput | GetDeliverySourceCommandOutput | GetLogEventsCommandOutput | GetLogGroupFieldsCommandOutput | GetLogRecordCommandOutput | GetQueryResultsCommandOutput | ListTagsForResourceCommandOutput | ListTagsLogGroupCommandOutput | PutAccountPolicyCommandOutput | PutDataProtectionPolicyCommandOutput | PutDeliveryDestinationCommandOutput | PutDeliveryDestinationPolicyCommandOutput | PutDeliverySourceCommandOutput | PutDestinationCommandOutput | PutDestinationPolicyCommandOutput | PutLogEventsCommandOutput | PutMetricFilterCommandOutput | PutQueryDefinitionCommandOutput | PutResourcePolicyCommandOutput | PutRetentionPolicyCommandOutput | PutSubscriptionFilterCommandOutput | StartQueryCommandOutput | StopQueryCommandOutput | TagLogGroupCommandOutput | TagResourceCommandOutput | TestMetricFilterCommandOutput | UntagLogGroupCommandOutput | UntagResourceCommandOutput;
73
88
  /**
74
89
  * @public
75
90
  */
@@ -0,0 +1,142 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
5
+ import { CreateDeliveryRequest, CreateDeliveryResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateDeliveryCommand}.
14
+ */
15
+ export interface CreateDeliveryCommandInput extends CreateDeliveryRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateDeliveryCommand}.
21
+ */
22
+ export interface CreateDeliveryCommandOutput extends CreateDeliveryResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates a <i>delivery</i>. A delivery is a connection between a logical <i>delivery source</i> and a logical
27
+ * <i>delivery destination</i>
28
+ * that you have already created.</p>
29
+ * <p>Only some Amazon Web Services services support being configured as a delivery source using this operation. These services are listed
30
+ * as <b>Supported [V2 Permissions]</b> in the table at
31
+ * <a href="https://docs.aws.amazon.com/ AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html#AWS-vended-logs-permissions">Enabling
32
+ * logging from Amazon Web Services services.</a>
33
+ * </p>
34
+ * <p>A delivery destination can represent a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Kinesis Data Firehose.</p>
35
+ * <p>To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:</p>
36
+ * <ul>
37
+ * <li>
38
+ * <p>Create a delivery source, which is a logical object that represents the resource that is actually
39
+ * sending the logs. For more
40
+ * information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html">PutDeliverySource</a>.</p>
41
+ * </li>
42
+ * <li>
43
+ * <p>Create a <i>delivery destination</i>, which is a logical object that represents the actual
44
+ * delivery destination. For more
45
+ * information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html">PutDeliveryDestination</a>.</p>
46
+ * </li>
47
+ * <li>
48
+ * <p>If you are delivering logs cross-account, you must use
49
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationolicy.html">PutDeliveryDestinationPolicy</a>
50
+ * in the destination account to assign an IAM policy to the
51
+ * destination. This policy allows delivery to that destination.
52
+ * </p>
53
+ * </li>
54
+ * <li>
55
+ * <p>Use <code>CreateDelivery</code> to create a <i>delivery</i> by pairing exactly one delivery source and one delivery destination.
56
+ * </p>
57
+ * </li>
58
+ * </ul>
59
+ * <p>You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You
60
+ * can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.</p>
61
+ * <p>You can't update an existing delivery. You can only create and delete deliveries.</p>
62
+ * @example
63
+ * Use a bare-bones client and the command you need to make an API call.
64
+ * ```javascript
65
+ * import { CloudWatchLogsClient, CreateDeliveryCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
66
+ * // const { CloudWatchLogsClient, CreateDeliveryCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
67
+ * const client = new CloudWatchLogsClient(config);
68
+ * const input = { // CreateDeliveryRequest
69
+ * deliverySourceName: "STRING_VALUE", // required
70
+ * deliveryDestinationArn: "STRING_VALUE", // required
71
+ * tags: { // Tags
72
+ * "<keys>": "STRING_VALUE",
73
+ * },
74
+ * };
75
+ * const command = new CreateDeliveryCommand(input);
76
+ * const response = await client.send(command);
77
+ * // { // CreateDeliveryResponse
78
+ * // delivery: { // Delivery
79
+ * // id: "STRING_VALUE",
80
+ * // arn: "STRING_VALUE",
81
+ * // deliverySourceName: "STRING_VALUE",
82
+ * // deliveryDestinationArn: "STRING_VALUE",
83
+ * // deliveryDestinationType: "S3" || "CWL" || "FH",
84
+ * // tags: { // Tags
85
+ * // "<keys>": "STRING_VALUE",
86
+ * // },
87
+ * // },
88
+ * // };
89
+ *
90
+ * ```
91
+ *
92
+ * @param CreateDeliveryCommandInput - {@link CreateDeliveryCommandInput}
93
+ * @returns {@link CreateDeliveryCommandOutput}
94
+ * @see {@link CreateDeliveryCommandInput} for command's `input` shape.
95
+ * @see {@link CreateDeliveryCommandOutput} for command's `response` shape.
96
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
97
+ *
98
+ * @throws {@link AccessDeniedException} (client fault)
99
+ * <p>You don't have sufficient permissions to perform this action.</p>
100
+ *
101
+ * @throws {@link ConflictException} (client fault)
102
+ * <p>This operation attempted to create a resource that already exists.</p>
103
+ *
104
+ * @throws {@link ResourceNotFoundException} (client fault)
105
+ * <p>The specified resource does not exist.</p>
106
+ *
107
+ * @throws {@link ServiceQuotaExceededException} (client fault)
108
+ * <p>This request exceeds a service quota.</p>
109
+ *
110
+ * @throws {@link ServiceUnavailableException} (server fault)
111
+ * <p>The service cannot complete the request.</p>
112
+ *
113
+ * @throws {@link ThrottlingException} (client fault)
114
+ * <p>The request was throttled because of quota limits.</p>
115
+ *
116
+ * @throws {@link ValidationException} (client fault)
117
+ * <p>One of the parameters for the request is not valid.</p>
118
+ *
119
+ * @throws {@link CloudWatchLogsServiceException}
120
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
121
+ *
122
+ */
123
+ export declare class CreateDeliveryCommand extends $Command<CreateDeliveryCommandInput, CreateDeliveryCommandOutput, CloudWatchLogsClientResolvedConfig> {
124
+ readonly input: CreateDeliveryCommandInput;
125
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
126
+ /**
127
+ * @public
128
+ */
129
+ constructor(input: CreateDeliveryCommandInput);
130
+ /**
131
+ * @internal
132
+ */
133
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateDeliveryCommandInput, CreateDeliveryCommandOutput>;
134
+ /**
135
+ * @internal
136
+ */
137
+ private serialize;
138
+ /**
139
+ * @internal
140
+ */
141
+ private deserialize;
142
+ }
@@ -0,0 +1,91 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
5
+ import { DeleteDeliveryRequest } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteDeliveryCommand}.
14
+ */
15
+ export interface DeleteDeliveryCommandInput extends DeleteDeliveryRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteDeliveryCommand}.
21
+ */
22
+ export interface DeleteDeliveryCommandOutput extends __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Deletes s <i>delivery</i>. A delivery is a connection between a logical <i>delivery source</i> and a logical
27
+ * <i>delivery destination</i>. Deleting a delivery only deletes the connection between the delivery source and delivery destination. It does
28
+ * not delete the delivery destination or the delivery source.</p>
29
+ * @example
30
+ * Use a bare-bones client and the command you need to make an API call.
31
+ * ```javascript
32
+ * import { CloudWatchLogsClient, DeleteDeliveryCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
33
+ * // const { CloudWatchLogsClient, DeleteDeliveryCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
34
+ * const client = new CloudWatchLogsClient(config);
35
+ * const input = { // DeleteDeliveryRequest
36
+ * id: "STRING_VALUE", // required
37
+ * };
38
+ * const command = new DeleteDeliveryCommand(input);
39
+ * const response = await client.send(command);
40
+ * // {};
41
+ *
42
+ * ```
43
+ *
44
+ * @param DeleteDeliveryCommandInput - {@link DeleteDeliveryCommandInput}
45
+ * @returns {@link DeleteDeliveryCommandOutput}
46
+ * @see {@link DeleteDeliveryCommandInput} for command's `input` shape.
47
+ * @see {@link DeleteDeliveryCommandOutput} for command's `response` shape.
48
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
49
+ *
50
+ * @throws {@link ConflictException} (client fault)
51
+ * <p>This operation attempted to create a resource that already exists.</p>
52
+ *
53
+ * @throws {@link ResourceNotFoundException} (client fault)
54
+ * <p>The specified resource does not exist.</p>
55
+ *
56
+ * @throws {@link ServiceQuotaExceededException} (client fault)
57
+ * <p>This request exceeds a service quota.</p>
58
+ *
59
+ * @throws {@link ServiceUnavailableException} (server fault)
60
+ * <p>The service cannot complete the request.</p>
61
+ *
62
+ * @throws {@link ThrottlingException} (client fault)
63
+ * <p>The request was throttled because of quota limits.</p>
64
+ *
65
+ * @throws {@link ValidationException} (client fault)
66
+ * <p>One of the parameters for the request is not valid.</p>
67
+ *
68
+ * @throws {@link CloudWatchLogsServiceException}
69
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
70
+ *
71
+ */
72
+ export declare class DeleteDeliveryCommand extends $Command<DeleteDeliveryCommandInput, DeleteDeliveryCommandOutput, CloudWatchLogsClientResolvedConfig> {
73
+ readonly input: DeleteDeliveryCommandInput;
74
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
75
+ /**
76
+ * @public
77
+ */
78
+ constructor(input: DeleteDeliveryCommandInput);
79
+ /**
80
+ * @internal
81
+ */
82
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteDeliveryCommandInput, DeleteDeliveryCommandOutput>;
83
+ /**
84
+ * @internal
85
+ */
86
+ private serialize;
87
+ /**
88
+ * @internal
89
+ */
90
+ private deserialize;
91
+ }
@@ -0,0 +1,92 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
5
+ import { DeleteDeliveryDestinationRequest } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteDeliveryDestinationCommand}.
14
+ */
15
+ export interface DeleteDeliveryDestinationCommandInput extends DeleteDeliveryDestinationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteDeliveryDestinationCommand}.
21
+ */
22
+ export interface DeleteDeliveryDestinationCommandOutput extends __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Deletes a <i>delivery destination</i>. A delivery is a connection between a logical <i>delivery source</i> and a logical
27
+ * <i>delivery destination</i>.</p>
28
+ * <p>You can't delete a delivery destination if any current deliveries are associated with it. To find whether any deliveries are associated with
29
+ * this delivery destination, use the <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveries.html">DescribeDeliveries</a> operation and check the <code>deliveryDestinationArn</code> field in the results.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { CloudWatchLogsClient, DeleteDeliveryDestinationCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
34
+ * // const { CloudWatchLogsClient, DeleteDeliveryDestinationCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
35
+ * const client = new CloudWatchLogsClient(config);
36
+ * const input = { // DeleteDeliveryDestinationRequest
37
+ * name: "STRING_VALUE", // required
38
+ * };
39
+ * const command = new DeleteDeliveryDestinationCommand(input);
40
+ * const response = await client.send(command);
41
+ * // {};
42
+ *
43
+ * ```
44
+ *
45
+ * @param DeleteDeliveryDestinationCommandInput - {@link DeleteDeliveryDestinationCommandInput}
46
+ * @returns {@link DeleteDeliveryDestinationCommandOutput}
47
+ * @see {@link DeleteDeliveryDestinationCommandInput} for command's `input` shape.
48
+ * @see {@link DeleteDeliveryDestinationCommandOutput} for command's `response` shape.
49
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
50
+ *
51
+ * @throws {@link ConflictException} (client fault)
52
+ * <p>This operation attempted to create a resource that already exists.</p>
53
+ *
54
+ * @throws {@link ResourceNotFoundException} (client fault)
55
+ * <p>The specified resource does not exist.</p>
56
+ *
57
+ * @throws {@link ServiceQuotaExceededException} (client fault)
58
+ * <p>This request exceeds a service quota.</p>
59
+ *
60
+ * @throws {@link ServiceUnavailableException} (server fault)
61
+ * <p>The service cannot complete the request.</p>
62
+ *
63
+ * @throws {@link ThrottlingException} (client fault)
64
+ * <p>The request was throttled because of quota limits.</p>
65
+ *
66
+ * @throws {@link ValidationException} (client fault)
67
+ * <p>One of the parameters for the request is not valid.</p>
68
+ *
69
+ * @throws {@link CloudWatchLogsServiceException}
70
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
71
+ *
72
+ */
73
+ export declare class DeleteDeliveryDestinationCommand extends $Command<DeleteDeliveryDestinationCommandInput, DeleteDeliveryDestinationCommandOutput, CloudWatchLogsClientResolvedConfig> {
74
+ readonly input: DeleteDeliveryDestinationCommandInput;
75
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
76
+ /**
77
+ * @public
78
+ */
79
+ constructor(input: DeleteDeliveryDestinationCommandInput);
80
+ /**
81
+ * @internal
82
+ */
83
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteDeliveryDestinationCommandInput, DeleteDeliveryDestinationCommandOutput>;
84
+ /**
85
+ * @internal
86
+ */
87
+ private serialize;
88
+ /**
89
+ * @internal
90
+ */
91
+ private deserialize;
92
+ }