@aws-sdk/client-cloudwatch-logs 3.445.0 → 3.449.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.
- package/README.md +120 -0
- package/dist-cjs/CloudWatchLogs.js +30 -0
- package/dist-cjs/commands/CreateDeliveryCommand.js +51 -0
- package/dist-cjs/commands/DeleteDeliveryCommand.js +51 -0
- package/dist-cjs/commands/DeleteDeliveryDestinationCommand.js +51 -0
- package/dist-cjs/commands/DeleteDeliveryDestinationPolicyCommand.js +51 -0
- package/dist-cjs/commands/DeleteDeliverySourceCommand.js +51 -0
- package/dist-cjs/commands/DescribeDeliveriesCommand.js +51 -0
- package/dist-cjs/commands/DescribeDeliveryDestinationsCommand.js +51 -0
- package/dist-cjs/commands/DescribeDeliverySourcesCommand.js +51 -0
- package/dist-cjs/commands/GetDeliveryCommand.js +51 -0
- package/dist-cjs/commands/GetDeliveryDestinationCommand.js +51 -0
- package/dist-cjs/commands/GetDeliveryDestinationPolicyCommand.js +51 -0
- package/dist-cjs/commands/GetDeliverySourceCommand.js +51 -0
- package/dist-cjs/commands/PutDeliveryDestinationCommand.js +51 -0
- package/dist-cjs/commands/PutDeliveryDestinationPolicyCommand.js +51 -0
- package/dist-cjs/commands/PutDeliverySourceCommand.js +51 -0
- package/dist-cjs/commands/index.js +15 -0
- package/dist-cjs/models/models_0.js +78 -1
- package/dist-cjs/pagination/DescribeDeliveriesPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeDeliveryDestinationsPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeDeliverySourcesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_json1_1.js +887 -74
- package/dist-es/CloudWatchLogs.js +30 -0
- package/dist-es/commands/CreateDeliveryCommand.js +47 -0
- package/dist-es/commands/DeleteDeliveryCommand.js +47 -0
- package/dist-es/commands/DeleteDeliveryDestinationCommand.js +47 -0
- package/dist-es/commands/DeleteDeliveryDestinationPolicyCommand.js +47 -0
- package/dist-es/commands/DeleteDeliverySourceCommand.js +47 -0
- package/dist-es/commands/DescribeDeliveriesCommand.js +47 -0
- package/dist-es/commands/DescribeDeliveryDestinationsCommand.js +47 -0
- package/dist-es/commands/DescribeDeliverySourcesCommand.js +47 -0
- package/dist-es/commands/GetDeliveryCommand.js +47 -0
- package/dist-es/commands/GetDeliveryDestinationCommand.js +47 -0
- package/dist-es/commands/GetDeliveryDestinationPolicyCommand.js +47 -0
- package/dist-es/commands/GetDeliverySourceCommand.js +47 -0
- package/dist-es/commands/PutDeliveryDestinationCommand.js +47 -0
- package/dist-es/commands/PutDeliveryDestinationPolicyCommand.js +47 -0
- package/dist-es/commands/PutDeliverySourceCommand.js +47 -0
- package/dist-es/commands/index.js +15 -0
- package/dist-es/models/models_0.js +72 -0
- package/dist-es/pagination/DescribeDeliveriesPaginator.js +25 -0
- package/dist-es/pagination/DescribeDeliveryDestinationsPaginator.js +25 -0
- package/dist-es/pagination/DescribeDeliverySourcesPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +854 -71
- package/dist-types/CloudWatchLogs.d.ts +105 -0
- package/dist-types/CloudWatchLogsClient.d.ts +17 -2
- package/dist-types/commands/CreateDeliveryCommand.d.ts +142 -0
- package/dist-types/commands/DeleteDeliveryCommand.d.ts +91 -0
- package/dist-types/commands/DeleteDeliveryDestinationCommand.d.ts +92 -0
- package/dist-types/commands/DeleteDeliveryDestinationPolicyCommand.d.ts +84 -0
- package/dist-types/commands/DeleteDeliverySourceCommand.d.ts +92 -0
- package/dist-types/commands/DescribeDeliveriesCommand.d.ts +98 -0
- package/dist-types/commands/DescribeDeliveryDestinationsCommand.d.ts +100 -0
- package/dist-types/commands/DescribeDeliverySourcesCommand.d.ts +100 -0
- package/dist-types/commands/GetDeliveryCommand.d.ts +101 -0
- package/dist-types/commands/GetDeliveryDestinationCommand.d.ts +99 -0
- package/dist-types/commands/GetDeliveryDestinationPolicyCommand.d.ts +86 -0
- package/dist-types/commands/GetDeliverySourceCommand.d.ts +99 -0
- package/dist-types/commands/GetQueryResultsCommand.d.ts +2 -1
- package/dist-types/commands/PutDeliveryDestinationCommand.d.ts +145 -0
- package/dist-types/commands/PutDeliveryDestinationPolicyCommand.d.ts +118 -0
- package/dist-types/commands/PutDeliverySourceCommand.d.ts +142 -0
- package/dist-types/commands/index.d.ts +15 -0
- package/dist-types/models/models_0.d.ts +635 -0
- package/dist-types/pagination/DescribeDeliveriesPaginator.d.ts +7 -0
- package/dist-types/pagination/DescribeDeliveryDestinationsPaginator.d.ts +7 -0
- package/dist-types/pagination/DescribeDeliverySourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +135 -0
- package/dist-types/ts3.4/CloudWatchLogs.d.ts +255 -0
- package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +90 -0
- package/dist-types/ts3.4/commands/CreateDeliveryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteDeliveryCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/DeleteDeliveryDestinationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteDeliveryDestinationPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteDeliverySourceCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeDeliveriesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DescribeDeliveryDestinationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeDeliverySourcesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetDeliveryCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetDeliveryDestinationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetDeliveryDestinationPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetDeliverySourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PutDeliveryDestinationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutDeliveryDestinationPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutDeliverySourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +15 -0
- package/dist-types/ts3.4/models/models_0.d.ts +173 -0
- package/dist-types/ts3.4/pagination/DescribeDeliveriesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeDeliveryDestinationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeDeliverySourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +180 -0
- package/package.json +12 -12
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { CloudWatchLogsServiceException as __BaseException } from "./CloudWatchLogsServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
* <p>You don't have sufficient permissions to perform this action.</p>
|
|
6
|
+
*/
|
|
7
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
8
|
+
readonly name: "AccessDeniedException";
|
|
9
|
+
readonly $fault: "client";
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
14
|
+
}
|
|
3
15
|
/**
|
|
4
16
|
* @public
|
|
5
17
|
* @enum
|
|
@@ -178,6 +190,140 @@ export declare class InvalidOperationException extends __BaseException {
|
|
|
178
190
|
*/
|
|
179
191
|
constructor(opts: __ExceptionOptionType<InvalidOperationException, __BaseException>);
|
|
180
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
* @public
|
|
195
|
+
* <p>This operation attempted to create a resource that already exists.</p>
|
|
196
|
+
*/
|
|
197
|
+
export declare class ConflictException extends __BaseException {
|
|
198
|
+
readonly name: "ConflictException";
|
|
199
|
+
readonly $fault: "client";
|
|
200
|
+
/**
|
|
201
|
+
* @internal
|
|
202
|
+
*/
|
|
203
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* @public
|
|
207
|
+
*/
|
|
208
|
+
export interface CreateDeliveryRequest {
|
|
209
|
+
/**
|
|
210
|
+
* @public
|
|
211
|
+
* <p>The name of the delivery source to use for this delivery.</p>
|
|
212
|
+
*/
|
|
213
|
+
deliverySourceName: string | undefined;
|
|
214
|
+
/**
|
|
215
|
+
* @public
|
|
216
|
+
* <p>The ARN of the delivery destination to use for this delivery.</p>
|
|
217
|
+
*/
|
|
218
|
+
deliveryDestinationArn: string | undefined;
|
|
219
|
+
/**
|
|
220
|
+
* @public
|
|
221
|
+
* <p>An optional list of key-value pairs to associate with the resource.</p>
|
|
222
|
+
* <p>For more information about tagging, see
|
|
223
|
+
* <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
|
|
224
|
+
* </p>
|
|
225
|
+
*/
|
|
226
|
+
tags?: Record<string, string>;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* @public
|
|
230
|
+
* @enum
|
|
231
|
+
*/
|
|
232
|
+
export declare const DeliveryDestinationType: {
|
|
233
|
+
readonly CWL: "CWL";
|
|
234
|
+
readonly FH: "FH";
|
|
235
|
+
readonly S3: "S3";
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* @public
|
|
239
|
+
*/
|
|
240
|
+
export type DeliveryDestinationType = (typeof DeliveryDestinationType)[keyof typeof DeliveryDestinationType];
|
|
241
|
+
/**
|
|
242
|
+
* @public
|
|
243
|
+
* <p>This structure contains information about one <i>delivery</i> in your account. </p>
|
|
244
|
+
* <p>A delivery is a connection between a logical <i>delivery source</i> and a logical
|
|
245
|
+
* <i>delivery destination</i>.</p>
|
|
246
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html">CreateDelivery</a>.</p>
|
|
247
|
+
* <p>You can't update an existing delivery. You can only create and delete deliveries.</p>
|
|
248
|
+
*/
|
|
249
|
+
export interface Delivery {
|
|
250
|
+
/**
|
|
251
|
+
* @public
|
|
252
|
+
* <p>The unique ID that identifies this delivery in your account.</p>
|
|
253
|
+
*/
|
|
254
|
+
id?: string;
|
|
255
|
+
/**
|
|
256
|
+
* @public
|
|
257
|
+
* <p>The Amazon Resource Name (ARN) that uniquely identifies this delivery.</p>
|
|
258
|
+
*/
|
|
259
|
+
arn?: string;
|
|
260
|
+
/**
|
|
261
|
+
* @public
|
|
262
|
+
* <p>The name of the delivery source that is associated with this delivery.</p>
|
|
263
|
+
*/
|
|
264
|
+
deliverySourceName?: string;
|
|
265
|
+
/**
|
|
266
|
+
* @public
|
|
267
|
+
* <p>The ARN of the delivery destination that is associated with this delivery.</p>
|
|
268
|
+
*/
|
|
269
|
+
deliveryDestinationArn?: string;
|
|
270
|
+
/**
|
|
271
|
+
* @public
|
|
272
|
+
* <p>Displays whether the delivery destination associated with this delivery is CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.</p>
|
|
273
|
+
*/
|
|
274
|
+
deliveryDestinationType?: DeliveryDestinationType;
|
|
275
|
+
/**
|
|
276
|
+
* @public
|
|
277
|
+
* <p>The tags that have been assigned to this delivery.</p>
|
|
278
|
+
*/
|
|
279
|
+
tags?: Record<string, string>;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* @public
|
|
283
|
+
*/
|
|
284
|
+
export interface CreateDeliveryResponse {
|
|
285
|
+
/**
|
|
286
|
+
* @public
|
|
287
|
+
* <p>A structure that contains information about the delivery that you just created.</p>
|
|
288
|
+
*/
|
|
289
|
+
delivery?: Delivery;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* @public
|
|
293
|
+
* <p>This request exceeds a service quota.</p>
|
|
294
|
+
*/
|
|
295
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
296
|
+
readonly name: "ServiceQuotaExceededException";
|
|
297
|
+
readonly $fault: "client";
|
|
298
|
+
/**
|
|
299
|
+
* @internal
|
|
300
|
+
*/
|
|
301
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* @public
|
|
305
|
+
* <p>The request was throttled because of quota limits.</p>
|
|
306
|
+
*/
|
|
307
|
+
export declare class ThrottlingException extends __BaseException {
|
|
308
|
+
readonly name: "ThrottlingException";
|
|
309
|
+
readonly $fault: "client";
|
|
310
|
+
/**
|
|
311
|
+
* @internal
|
|
312
|
+
*/
|
|
313
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* @public
|
|
317
|
+
* <p>One of the parameters for the request is not valid.</p>
|
|
318
|
+
*/
|
|
319
|
+
export declare class ValidationException extends __BaseException {
|
|
320
|
+
readonly name: "ValidationException";
|
|
321
|
+
readonly $fault: "client";
|
|
322
|
+
/**
|
|
323
|
+
* @internal
|
|
324
|
+
*/
|
|
325
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
326
|
+
}
|
|
181
327
|
/**
|
|
182
328
|
* @public
|
|
183
329
|
*/
|
|
@@ -362,6 +508,49 @@ export interface DeleteDataProtectionPolicyRequest {
|
|
|
362
508
|
*/
|
|
363
509
|
logGroupIdentifier: string | undefined;
|
|
364
510
|
}
|
|
511
|
+
/**
|
|
512
|
+
* @public
|
|
513
|
+
*/
|
|
514
|
+
export interface DeleteDeliveryRequest {
|
|
515
|
+
/**
|
|
516
|
+
* @public
|
|
517
|
+
* <p>The unique ID of the delivery to delete. You can find the ID of a delivery with the
|
|
518
|
+
* <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveries.html">DescribeDeliveries</a> operation.</p>
|
|
519
|
+
*/
|
|
520
|
+
id: string | undefined;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* @public
|
|
524
|
+
*/
|
|
525
|
+
export interface DeleteDeliveryDestinationRequest {
|
|
526
|
+
/**
|
|
527
|
+
* @public
|
|
528
|
+
* <p>The name of the delivery destination that you want to delete. You can find a list of delivery destionation names
|
|
529
|
+
* by using the <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveryDestinations.html">DescribeDeliveryDestinations</a>
|
|
530
|
+
* operation.</p>
|
|
531
|
+
*/
|
|
532
|
+
name: string | undefined;
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* @public
|
|
536
|
+
*/
|
|
537
|
+
export interface DeleteDeliveryDestinationPolicyRequest {
|
|
538
|
+
/**
|
|
539
|
+
* @public
|
|
540
|
+
* <p>The name of the delivery destination that you want to delete the policy for.</p>
|
|
541
|
+
*/
|
|
542
|
+
deliveryDestinationName: string | undefined;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* @public
|
|
546
|
+
*/
|
|
547
|
+
export interface DeleteDeliverySourceRequest {
|
|
548
|
+
/**
|
|
549
|
+
* @public
|
|
550
|
+
* <p>The name of the delivery source that you want to delete.</p>
|
|
551
|
+
*/
|
|
552
|
+
name: string | undefined;
|
|
553
|
+
}
|
|
365
554
|
/**
|
|
366
555
|
* @public
|
|
367
556
|
*/
|
|
@@ -469,6 +658,167 @@ export interface DeleteSubscriptionFilterRequest {
|
|
|
469
658
|
*/
|
|
470
659
|
filterName: string | undefined;
|
|
471
660
|
}
|
|
661
|
+
/**
|
|
662
|
+
* @public
|
|
663
|
+
* <p>A structure that contains information about one logs delivery destination.</p>
|
|
664
|
+
*/
|
|
665
|
+
export interface DeliveryDestinationConfiguration {
|
|
666
|
+
/**
|
|
667
|
+
* @public
|
|
668
|
+
* <p>The ARN of the Amazon Web Services destination that this delivery destination represents. That Amazon Web Services destination
|
|
669
|
+
* can be a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Kinesis Data Firehose.</p>
|
|
670
|
+
*/
|
|
671
|
+
destinationResourceArn: string | undefined;
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* @public
|
|
675
|
+
* @enum
|
|
676
|
+
*/
|
|
677
|
+
export declare const OutputFormat: {
|
|
678
|
+
readonly JSON: "json";
|
|
679
|
+
readonly PARQUET: "parquet";
|
|
680
|
+
readonly PLAIN: "plain";
|
|
681
|
+
readonly RAW: "raw";
|
|
682
|
+
readonly W3C: "w3c";
|
|
683
|
+
};
|
|
684
|
+
/**
|
|
685
|
+
* @public
|
|
686
|
+
*/
|
|
687
|
+
export type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat];
|
|
688
|
+
/**
|
|
689
|
+
* @public
|
|
690
|
+
* <p>This structure contains information about one <i>delivery destination</i> in your account.
|
|
691
|
+
* A delivery destination is an Amazon Web Services resource that represents an
|
|
692
|
+
* shared id="AWS"/> service that logs can be sent to. CloudWatch Logs, Amazon S3, are supported as Kinesis Data Firehose delivery destinations.</p>
|
|
693
|
+
* <p>To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:</p>
|
|
694
|
+
* <ul>
|
|
695
|
+
* <li>
|
|
696
|
+
* <p>Create a delivery source, which is a logical object that represents the resource that is actually
|
|
697
|
+
* sending the logs. For more
|
|
698
|
+
* information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html">PutDeliverySource</a>.</p>
|
|
699
|
+
* </li>
|
|
700
|
+
* <li>
|
|
701
|
+
* <p>Create a <i>delivery destination</i>, which is a logical object that represents the actual
|
|
702
|
+
* delivery destination. </p>
|
|
703
|
+
* </li>
|
|
704
|
+
* <li>
|
|
705
|
+
* <p>If you are delivering logs cross-account, you must use
|
|
706
|
+
* <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationolicy.html">PutDeliveryDestinationPolicy</a>
|
|
707
|
+
* in the destination account to assign an IAM policy to the
|
|
708
|
+
* destination. This policy allows delivery to that destination.
|
|
709
|
+
* </p>
|
|
710
|
+
* </li>
|
|
711
|
+
* <li>
|
|
712
|
+
* <p>Create a <i>delivery</i> by pairing exactly one delivery source and one delivery destination.
|
|
713
|
+
* For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html">CreateDelivery</a>.</p>
|
|
714
|
+
* </li>
|
|
715
|
+
* </ul>
|
|
716
|
+
* <p>You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You
|
|
717
|
+
* can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.</p>
|
|
718
|
+
*/
|
|
719
|
+
export interface DeliveryDestination {
|
|
720
|
+
/**
|
|
721
|
+
* @public
|
|
722
|
+
* <p>The name of this delivery destination.</p>
|
|
723
|
+
*/
|
|
724
|
+
name?: string;
|
|
725
|
+
/**
|
|
726
|
+
* @public
|
|
727
|
+
* <p>The Amazon Resource Name (ARN) that uniquely identifies this delivery destination.</p>
|
|
728
|
+
*/
|
|
729
|
+
arn?: string;
|
|
730
|
+
/**
|
|
731
|
+
* @public
|
|
732
|
+
* <p>Displays whether this delivery destination is CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.</p>
|
|
733
|
+
*/
|
|
734
|
+
deliveryDestinationType?: DeliveryDestinationType;
|
|
735
|
+
/**
|
|
736
|
+
* @public
|
|
737
|
+
* <p>The format of the logs that are sent to this delivery destination. </p>
|
|
738
|
+
*/
|
|
739
|
+
outputFormat?: OutputFormat;
|
|
740
|
+
/**
|
|
741
|
+
* @public
|
|
742
|
+
* <p>A structure that contains the ARN of the Amazon Web Services resource that will receive the logs.</p>
|
|
743
|
+
*/
|
|
744
|
+
deliveryDestinationConfiguration?: DeliveryDestinationConfiguration;
|
|
745
|
+
/**
|
|
746
|
+
* @public
|
|
747
|
+
* <p>The tags that have been assigned to this delivery destination.</p>
|
|
748
|
+
*/
|
|
749
|
+
tags?: Record<string, string>;
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* @public
|
|
753
|
+
* <p>This structure contains information about one <i>delivery source</i> in your account.
|
|
754
|
+
* A delivery source is an Amazon Web Services resource that sends logs to an
|
|
755
|
+
* Amazon Web Services destination. The destination can be CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.</p>
|
|
756
|
+
* <p>Only some Amazon Web Services services support being configured as a delivery source. These services are listed
|
|
757
|
+
* as <b>Supported [V2 Permissions]</b> in the table at
|
|
758
|
+
* <a href="https://docs.aws.amazon.com/ AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html#AWS-vended-logs-permissions">Enabling
|
|
759
|
+
* logging from Amazon Web Services services.</a>
|
|
760
|
+
* </p>
|
|
761
|
+
* <p>To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:</p>
|
|
762
|
+
* <ul>
|
|
763
|
+
* <li>
|
|
764
|
+
* <p>Create a delivery source, which is a logical object that represents the resource that is actually
|
|
765
|
+
* sending the logs. For more
|
|
766
|
+
* information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html">PutDeliverySource</a>.</p>
|
|
767
|
+
* </li>
|
|
768
|
+
* <li>
|
|
769
|
+
* <p>Create a <i>delivery destination</i>, which is a logical object that represents the actual
|
|
770
|
+
* delivery destination. For more
|
|
771
|
+
* information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html">PutDeliveryDestination</a>.</p>
|
|
772
|
+
* </li>
|
|
773
|
+
* <li>
|
|
774
|
+
* <p>If you are delivering logs cross-account, you must use
|
|
775
|
+
* <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationolicy.html">PutDeliveryDestinationPolicy</a>
|
|
776
|
+
* in the destination account to assign an IAM policy to the
|
|
777
|
+
* destination. This policy allows delivery to that destination.
|
|
778
|
+
* </p>
|
|
779
|
+
* </li>
|
|
780
|
+
* <li>
|
|
781
|
+
* <p>Create a <i>delivery</i> by pairing exactly one delivery source and one delivery destination.
|
|
782
|
+
* For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html">CreateDelivery</a>.</p>
|
|
783
|
+
* </li>
|
|
784
|
+
* </ul>
|
|
785
|
+
* <p>You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You
|
|
786
|
+
* can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.</p>
|
|
787
|
+
*/
|
|
788
|
+
export interface DeliverySource {
|
|
789
|
+
/**
|
|
790
|
+
* @public
|
|
791
|
+
* <p>The unique name of the delivery source.</p>
|
|
792
|
+
*/
|
|
793
|
+
name?: string;
|
|
794
|
+
/**
|
|
795
|
+
* @public
|
|
796
|
+
* <p>The Amazon Resource Name (ARN) that uniquely identifies this delivery source.</p>
|
|
797
|
+
*/
|
|
798
|
+
arn?: string;
|
|
799
|
+
/**
|
|
800
|
+
* @public
|
|
801
|
+
* <p>This array contains the ARN of the Amazon Web Services resource that sends logs and is represented by
|
|
802
|
+
* this delivery source. Currently, only one ARN can be in the array.</p>
|
|
803
|
+
*/
|
|
804
|
+
resourceArns?: string[];
|
|
805
|
+
/**
|
|
806
|
+
* @public
|
|
807
|
+
* <p>The Amazon Web Services service that is sending logs.</p>
|
|
808
|
+
*/
|
|
809
|
+
service?: string;
|
|
810
|
+
/**
|
|
811
|
+
* @public
|
|
812
|
+
* <p>The type of log that the source is sending. For valid values for this parameter, see the documentation for
|
|
813
|
+
* the source service.</p>
|
|
814
|
+
*/
|
|
815
|
+
logType?: string;
|
|
816
|
+
/**
|
|
817
|
+
* @public
|
|
818
|
+
* <p>The tags that have been assigned to this delivery source.</p>
|
|
819
|
+
*/
|
|
820
|
+
tags?: Record<string, string>;
|
|
821
|
+
}
|
|
472
822
|
/**
|
|
473
823
|
* @public
|
|
474
824
|
*/
|
|
@@ -506,6 +856,96 @@ export interface DescribeAccountPoliciesResponse {
|
|
|
506
856
|
*/
|
|
507
857
|
accountPolicies?: AccountPolicy[];
|
|
508
858
|
}
|
|
859
|
+
/**
|
|
860
|
+
* @public
|
|
861
|
+
*/
|
|
862
|
+
export interface DescribeDeliveriesRequest {
|
|
863
|
+
/**
|
|
864
|
+
* @public
|
|
865
|
+
* <p>The token for the next set of items to return. The token expires after 24 hours.</p>
|
|
866
|
+
*/
|
|
867
|
+
nextToken?: string;
|
|
868
|
+
/**
|
|
869
|
+
* @public
|
|
870
|
+
* <p>Optionally specify the maximum number of deliveries to return in the response.</p>
|
|
871
|
+
*/
|
|
872
|
+
limit?: number;
|
|
873
|
+
}
|
|
874
|
+
/**
|
|
875
|
+
* @public
|
|
876
|
+
*/
|
|
877
|
+
export interface DescribeDeliveriesResponse {
|
|
878
|
+
/**
|
|
879
|
+
* @public
|
|
880
|
+
* <p>An array of structures. Each structure contains information about one delivery in the account.</p>
|
|
881
|
+
*/
|
|
882
|
+
deliveries?: Delivery[];
|
|
883
|
+
/**
|
|
884
|
+
* @public
|
|
885
|
+
* <p>The token for the next set of items to return. The token expires after 24 hours.</p>
|
|
886
|
+
*/
|
|
887
|
+
nextToken?: string;
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* @public
|
|
891
|
+
*/
|
|
892
|
+
export interface DescribeDeliveryDestinationsRequest {
|
|
893
|
+
/**
|
|
894
|
+
* @public
|
|
895
|
+
* <p>The token for the next set of items to return. The token expires after 24 hours.</p>
|
|
896
|
+
*/
|
|
897
|
+
nextToken?: string;
|
|
898
|
+
/**
|
|
899
|
+
* @public
|
|
900
|
+
* <p>Optionally specify the maximum number of delivery destinations to return in the response.</p>
|
|
901
|
+
*/
|
|
902
|
+
limit?: number;
|
|
903
|
+
}
|
|
904
|
+
/**
|
|
905
|
+
* @public
|
|
906
|
+
*/
|
|
907
|
+
export interface DescribeDeliveryDestinationsResponse {
|
|
908
|
+
/**
|
|
909
|
+
* @public
|
|
910
|
+
* <p>An array of structures. Each structure contains information about one delivery destination in the account.</p>
|
|
911
|
+
*/
|
|
912
|
+
deliveryDestinations?: DeliveryDestination[];
|
|
913
|
+
/**
|
|
914
|
+
* @public
|
|
915
|
+
* <p>The token for the next set of items to return. The token expires after 24 hours.</p>
|
|
916
|
+
*/
|
|
917
|
+
nextToken?: string;
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* @public
|
|
921
|
+
*/
|
|
922
|
+
export interface DescribeDeliverySourcesRequest {
|
|
923
|
+
/**
|
|
924
|
+
* @public
|
|
925
|
+
* <p>The token for the next set of items to return. The token expires after 24 hours.</p>
|
|
926
|
+
*/
|
|
927
|
+
nextToken?: string;
|
|
928
|
+
/**
|
|
929
|
+
* @public
|
|
930
|
+
* <p>Optionally specify the maximum number of delivery sources to return in the response.</p>
|
|
931
|
+
*/
|
|
932
|
+
limit?: number;
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* @public
|
|
936
|
+
*/
|
|
937
|
+
export interface DescribeDeliverySourcesResponse {
|
|
938
|
+
/**
|
|
939
|
+
* @public
|
|
940
|
+
* <p>An array of structures. Each structure contains information about one delivery source in the account.</p>
|
|
941
|
+
*/
|
|
942
|
+
deliverySources?: DeliverySource[];
|
|
943
|
+
/**
|
|
944
|
+
* @public
|
|
945
|
+
* <p>The token for the next set of items to return. The token expires after 24 hours.</p>
|
|
946
|
+
*/
|
|
947
|
+
nextToken?: string;
|
|
948
|
+
}
|
|
509
949
|
/**
|
|
510
950
|
* @public
|
|
511
951
|
*/
|
|
@@ -1758,6 +2198,97 @@ export interface GetDataProtectionPolicyResponse {
|
|
|
1758
2198
|
*/
|
|
1759
2199
|
lastUpdatedTime?: number;
|
|
1760
2200
|
}
|
|
2201
|
+
/**
|
|
2202
|
+
* @public
|
|
2203
|
+
*/
|
|
2204
|
+
export interface GetDeliveryRequest {
|
|
2205
|
+
/**
|
|
2206
|
+
* @public
|
|
2207
|
+
* <p>The ID of the delivery that you want to retrieve.</p>
|
|
2208
|
+
*/
|
|
2209
|
+
id: string | undefined;
|
|
2210
|
+
}
|
|
2211
|
+
/**
|
|
2212
|
+
* @public
|
|
2213
|
+
*/
|
|
2214
|
+
export interface GetDeliveryResponse {
|
|
2215
|
+
/**
|
|
2216
|
+
* @public
|
|
2217
|
+
* <p>A structure that contains information about the delivery.</p>
|
|
2218
|
+
*/
|
|
2219
|
+
delivery?: Delivery;
|
|
2220
|
+
}
|
|
2221
|
+
/**
|
|
2222
|
+
* @public
|
|
2223
|
+
*/
|
|
2224
|
+
export interface GetDeliveryDestinationRequest {
|
|
2225
|
+
/**
|
|
2226
|
+
* @public
|
|
2227
|
+
* <p>The name of the delivery destination that you want to retrieve.</p>
|
|
2228
|
+
*/
|
|
2229
|
+
name: string | undefined;
|
|
2230
|
+
}
|
|
2231
|
+
/**
|
|
2232
|
+
* @public
|
|
2233
|
+
*/
|
|
2234
|
+
export interface GetDeliveryDestinationResponse {
|
|
2235
|
+
/**
|
|
2236
|
+
* @public
|
|
2237
|
+
* <p>A structure containing information about the delivery destination.</p>
|
|
2238
|
+
*/
|
|
2239
|
+
deliveryDestination?: DeliveryDestination;
|
|
2240
|
+
}
|
|
2241
|
+
/**
|
|
2242
|
+
* @public
|
|
2243
|
+
*/
|
|
2244
|
+
export interface GetDeliveryDestinationPolicyRequest {
|
|
2245
|
+
/**
|
|
2246
|
+
* @public
|
|
2247
|
+
* <p>The name of the delivery destination that you want to retrieve the policy of.</p>
|
|
2248
|
+
*/
|
|
2249
|
+
deliveryDestinationName: string | undefined;
|
|
2250
|
+
}
|
|
2251
|
+
/**
|
|
2252
|
+
* @public
|
|
2253
|
+
* <p>A structure that contains information about one delivery destination policy.</p>
|
|
2254
|
+
*/
|
|
2255
|
+
export interface Policy {
|
|
2256
|
+
/**
|
|
2257
|
+
* @public
|
|
2258
|
+
* <p>The contents of the delivery destination policy.</p>
|
|
2259
|
+
*/
|
|
2260
|
+
deliveryDestinationPolicy?: string;
|
|
2261
|
+
}
|
|
2262
|
+
/**
|
|
2263
|
+
* @public
|
|
2264
|
+
*/
|
|
2265
|
+
export interface GetDeliveryDestinationPolicyResponse {
|
|
2266
|
+
/**
|
|
2267
|
+
* @public
|
|
2268
|
+
* <p>The IAM policy for this delivery destination.</p>
|
|
2269
|
+
*/
|
|
2270
|
+
policy?: Policy;
|
|
2271
|
+
}
|
|
2272
|
+
/**
|
|
2273
|
+
* @public
|
|
2274
|
+
*/
|
|
2275
|
+
export interface GetDeliverySourceRequest {
|
|
2276
|
+
/**
|
|
2277
|
+
* @public
|
|
2278
|
+
* <p>The name of the delivery source that you want to retrieve.</p>
|
|
2279
|
+
*/
|
|
2280
|
+
name: string | undefined;
|
|
2281
|
+
}
|
|
2282
|
+
/**
|
|
2283
|
+
* @public
|
|
2284
|
+
*/
|
|
2285
|
+
export interface GetDeliverySourceResponse {
|
|
2286
|
+
/**
|
|
2287
|
+
* @public
|
|
2288
|
+
* <p>A structure containing information about the delivery source.</p>
|
|
2289
|
+
*/
|
|
2290
|
+
deliverySource?: DeliverySource;
|
|
2291
|
+
}
|
|
1761
2292
|
/**
|
|
1762
2293
|
* @public
|
|
1763
2294
|
*/
|
|
@@ -2293,6 +2824,110 @@ export interface PutDataProtectionPolicyResponse {
|
|
|
2293
2824
|
*/
|
|
2294
2825
|
lastUpdatedTime?: number;
|
|
2295
2826
|
}
|
|
2827
|
+
/**
|
|
2828
|
+
* @public
|
|
2829
|
+
*/
|
|
2830
|
+
export interface PutDeliveryDestinationRequest {
|
|
2831
|
+
/**
|
|
2832
|
+
* @public
|
|
2833
|
+
* <p>A name for this delivery destination. This name must be unique for all delivery destinations in your account.</p>
|
|
2834
|
+
*/
|
|
2835
|
+
name: string | undefined;
|
|
2836
|
+
/**
|
|
2837
|
+
* @public
|
|
2838
|
+
* <p>The format for the logs that this delivery destination will receive.</p>
|
|
2839
|
+
*/
|
|
2840
|
+
outputFormat?: OutputFormat;
|
|
2841
|
+
/**
|
|
2842
|
+
* @public
|
|
2843
|
+
* <p>A structure that contains the ARN of the Amazon Web Services resource that will receive the logs.</p>
|
|
2844
|
+
*/
|
|
2845
|
+
deliveryDestinationConfiguration: DeliveryDestinationConfiguration | undefined;
|
|
2846
|
+
/**
|
|
2847
|
+
* @public
|
|
2848
|
+
* <p>An optional list of key-value pairs to associate with the resource.</p>
|
|
2849
|
+
* <p>For more information about tagging, see
|
|
2850
|
+
* <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
|
|
2851
|
+
* </p>
|
|
2852
|
+
*/
|
|
2853
|
+
tags?: Record<string, string>;
|
|
2854
|
+
}
|
|
2855
|
+
/**
|
|
2856
|
+
* @public
|
|
2857
|
+
*/
|
|
2858
|
+
export interface PutDeliveryDestinationResponse {
|
|
2859
|
+
/**
|
|
2860
|
+
* @public
|
|
2861
|
+
* <p>A structure containing information about the delivery destination that you just created or updated.</p>
|
|
2862
|
+
*/
|
|
2863
|
+
deliveryDestination?: DeliveryDestination;
|
|
2864
|
+
}
|
|
2865
|
+
/**
|
|
2866
|
+
* @public
|
|
2867
|
+
*/
|
|
2868
|
+
export interface PutDeliveryDestinationPolicyRequest {
|
|
2869
|
+
/**
|
|
2870
|
+
* @public
|
|
2871
|
+
* <p>The name of the delivery destination to assign this policy to.</p>
|
|
2872
|
+
*/
|
|
2873
|
+
deliveryDestinationName: string | undefined;
|
|
2874
|
+
/**
|
|
2875
|
+
* @public
|
|
2876
|
+
* <p>The contents of the policy.</p>
|
|
2877
|
+
*/
|
|
2878
|
+
deliveryDestinationPolicy: string | undefined;
|
|
2879
|
+
}
|
|
2880
|
+
/**
|
|
2881
|
+
* @public
|
|
2882
|
+
*/
|
|
2883
|
+
export interface PutDeliveryDestinationPolicyResponse {
|
|
2884
|
+
/**
|
|
2885
|
+
* @public
|
|
2886
|
+
* <p>The contents of the policy that you just created.</p>
|
|
2887
|
+
*/
|
|
2888
|
+
policy?: Policy;
|
|
2889
|
+
}
|
|
2890
|
+
/**
|
|
2891
|
+
* @public
|
|
2892
|
+
*/
|
|
2893
|
+
export interface PutDeliverySourceRequest {
|
|
2894
|
+
/**
|
|
2895
|
+
* @public
|
|
2896
|
+
* <p>A name for this delivery source. This name must be unique for all delivery sources in your account.</p>
|
|
2897
|
+
*/
|
|
2898
|
+
name: string | undefined;
|
|
2899
|
+
/**
|
|
2900
|
+
* @public
|
|
2901
|
+
* <p>The ARN of the Amazon Web Services resource that is generating and sending logs.
|
|
2902
|
+
* For example, <code>arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234</code>
|
|
2903
|
+
* </p>
|
|
2904
|
+
*/
|
|
2905
|
+
resourceArn: string | undefined;
|
|
2906
|
+
/**
|
|
2907
|
+
* @public
|
|
2908
|
+
* <p>Defines the type of log that the source is sending. For valid values for this parameter, see the documentation for
|
|
2909
|
+
* the source service.</p>
|
|
2910
|
+
*/
|
|
2911
|
+
logType: string | undefined;
|
|
2912
|
+
/**
|
|
2913
|
+
* @public
|
|
2914
|
+
* <p>An optional list of key-value pairs to associate with the resource.</p>
|
|
2915
|
+
* <p>For more information about tagging, see
|
|
2916
|
+
* <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
|
|
2917
|
+
* </p>
|
|
2918
|
+
*/
|
|
2919
|
+
tags?: Record<string, string>;
|
|
2920
|
+
}
|
|
2921
|
+
/**
|
|
2922
|
+
* @public
|
|
2923
|
+
*/
|
|
2924
|
+
export interface PutDeliverySourceResponse {
|
|
2925
|
+
/**
|
|
2926
|
+
* @public
|
|
2927
|
+
* <p>A structure containing information about the delivery source that was just created or updated.</p>
|
|
2928
|
+
*/
|
|
2929
|
+
deliverySource?: DeliverySource;
|
|
2930
|
+
}
|
|
2296
2931
|
/**
|
|
2297
2932
|
* @public
|
|
2298
2933
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import { DescribeDeliveriesCommandInput, DescribeDeliveriesCommandOutput } from "../commands/DescribeDeliveriesCommand";
|
|
3
|
+
import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare function paginateDescribeDeliveries(config: CloudWatchLogsPaginationConfiguration, input: DescribeDeliveriesCommandInput, ...additionalArguments: any): Paginator<DescribeDeliveriesCommandOutput>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import { DescribeDeliveryDestinationsCommandInput, DescribeDeliveryDestinationsCommandOutput } from "../commands/DescribeDeliveryDestinationsCommand";
|
|
3
|
+
import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare function paginateDescribeDeliveryDestinations(config: CloudWatchLogsPaginationConfiguration, input: DescribeDeliveryDestinationsCommandInput, ...additionalArguments: any): Paginator<DescribeDeliveryDestinationsCommandOutput>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import { DescribeDeliverySourcesCommandInput, DescribeDeliverySourcesCommandOutput } from "../commands/DescribeDeliverySourcesCommand";
|
|
3
|
+
import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare function paginateDescribeDeliverySources(config: CloudWatchLogsPaginationConfiguration, input: DescribeDeliverySourcesCommandInput, ...additionalArguments: any): Paginator<DescribeDeliverySourcesCommandOutput>;
|