@aws-sdk/client-firehose 3.470.0 → 3.474.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateDestinationInputFilterSensitiveLog = exports.RedshiftDestinationUpdateFilterSensitiveLog = exports.HttpEndpointDestinationUpdateFilterSensitiveLog = exports.DescribeDeliveryStreamOutputFilterSensitiveLog = exports.DeliveryStreamDescriptionFilterSensitiveLog = exports.DestinationDescriptionFilterSensitiveLog = exports.RedshiftDestinationDescriptionFilterSensitiveLog = exports.HttpEndpointDestinationDescriptionFilterSensitiveLog = exports.HttpEndpointDescriptionFilterSensitiveLog = exports.CreateDeliveryStreamInputFilterSensitiveLog = exports.RedshiftDestinationConfigurationFilterSensitiveLog = exports.HttpEndpointDestinationConfigurationFilterSensitiveLog = exports.HttpEndpointRequestConfigurationFilterSensitiveLog = exports.HttpEndpointCommonAttributeFilterSensitiveLog = exports.HttpEndpointConfigurationFilterSensitiveLog = exports.ServiceUnavailableException = exports.DeliveryStreamStatus = exports.DeliveryStreamEncryptionStatus = exports.DeliveryStreamFailureType = exports.ResourceNotFoundException = exports.ResourceInUseException = exports.LimitExceededException = exports.InvalidKMSResourceException = exports.InvalidArgumentException = exports.SplunkS3BackupMode = exports.HECEndpointType = exports.RedshiftS3BackupMode = exports.HttpEndpointS3BackupMode = exports.S3BackupMode = exports.ParquetWriterVersion = exports.ParquetCompression = exports.OrcFormatVersion = exports.OrcCompression = exports.ElasticsearchS3BackupMode = exports.ElasticsearchIndexRotationPeriod = exports.DeliveryStreamType = exports.KeyType = exports.ContentEncoding = exports.ConcurrentModificationException = exports.Connectivity = exports.AmazonopensearchserviceS3BackupMode = exports.AmazonopensearchserviceIndexRotationPeriod = exports.DefaultDocumentIdFormat = exports.NoEncryptionConfig = exports.CompressionFormat = exports.AmazonOpenSearchServerlessS3BackupMode = exports.ProcessorType = exports.ProcessorParameterName = void 0;
3
+ exports.UpdateDestinationInputFilterSensitiveLog = exports.RedshiftDestinationUpdateFilterSensitiveLog = exports.HttpEndpointDestinationUpdateFilterSensitiveLog = exports.DescribeDeliveryStreamOutputFilterSensitiveLog = exports.DeliveryStreamDescriptionFilterSensitiveLog = exports.DestinationDescriptionFilterSensitiveLog = exports.RedshiftDestinationDescriptionFilterSensitiveLog = exports.HttpEndpointDestinationDescriptionFilterSensitiveLog = exports.HttpEndpointDescriptionFilterSensitiveLog = exports.CreateDeliveryStreamInputFilterSensitiveLog = exports.RedshiftDestinationConfigurationFilterSensitiveLog = exports.HttpEndpointDestinationConfigurationFilterSensitiveLog = exports.HttpEndpointRequestConfigurationFilterSensitiveLog = exports.HttpEndpointCommonAttributeFilterSensitiveLog = exports.HttpEndpointConfigurationFilterSensitiveLog = exports.ServiceUnavailableException = exports.InvalidSourceException = exports.DeliveryStreamStatus = exports.DeliveryStreamEncryptionStatus = exports.DeliveryStreamFailureType = exports.ResourceNotFoundException = exports.ResourceInUseException = exports.LimitExceededException = exports.InvalidKMSResourceException = exports.InvalidArgumentException = exports.SplunkS3BackupMode = exports.HECEndpointType = exports.RedshiftS3BackupMode = exports.HttpEndpointS3BackupMode = exports.S3BackupMode = exports.ParquetWriterVersion = exports.ParquetCompression = exports.OrcFormatVersion = exports.OrcCompression = exports.ElasticsearchS3BackupMode = exports.ElasticsearchIndexRotationPeriod = exports.DeliveryStreamType = exports.KeyType = exports.ContentEncoding = exports.ConcurrentModificationException = exports.Connectivity = exports.AmazonopensearchserviceS3BackupMode = exports.AmazonopensearchserviceIndexRotationPeriod = exports.DefaultDocumentIdFormat = exports.NoEncryptionConfig = exports.CompressionFormat = exports.AmazonOpenSearchServerlessS3BackupMode = exports.ProcessorType = exports.ProcessorParameterName = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const FirehoseServiceException_1 = require("./FirehoseServiceException");
6
6
  exports.ProcessorParameterName = {
@@ -228,6 +228,20 @@ exports.DeliveryStreamStatus = {
228
228
  DELETING: "DELETING",
229
229
  DELETING_FAILED: "DELETING_FAILED",
230
230
  };
231
+ class InvalidSourceException extends FirehoseServiceException_1.FirehoseServiceException {
232
+ constructor(opts) {
233
+ super({
234
+ name: "InvalidSourceException",
235
+ $fault: "client",
236
+ ...opts,
237
+ });
238
+ this.name = "InvalidSourceException";
239
+ this.$fault = "client";
240
+ Object.setPrototypeOf(this, InvalidSourceException.prototype);
241
+ this.code = opts.code;
242
+ }
243
+ }
244
+ exports.InvalidSourceException = InvalidSourceException;
231
245
  class ServiceUnavailableException extends FirehoseServiceException_1.FirehoseServiceException {
232
246
  constructor(opts) {
233
247
  super({
@@ -293,6 +293,9 @@ const de_PutRecordCommandError = async (output, context) => {
293
293
  case "InvalidKMSResourceException":
294
294
  case "com.amazonaws.firehose#InvalidKMSResourceException":
295
295
  throw await de_InvalidKMSResourceExceptionRes(parsedOutput, context);
296
+ case "InvalidSourceException":
297
+ case "com.amazonaws.firehose#InvalidSourceException":
298
+ throw await de_InvalidSourceExceptionRes(parsedOutput, context);
296
299
  case "ResourceNotFoundException":
297
300
  case "com.amazonaws.firehose#ResourceNotFoundException":
298
301
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -335,6 +338,9 @@ const de_PutRecordBatchCommandError = async (output, context) => {
335
338
  case "InvalidKMSResourceException":
336
339
  case "com.amazonaws.firehose#InvalidKMSResourceException":
337
340
  throw await de_InvalidKMSResourceExceptionRes(parsedOutput, context);
341
+ case "InvalidSourceException":
342
+ case "com.amazonaws.firehose#InvalidSourceException":
343
+ throw await de_InvalidSourceExceptionRes(parsedOutput, context);
338
344
  case "ResourceNotFoundException":
339
345
  case "com.amazonaws.firehose#ResourceNotFoundException":
340
346
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -590,6 +596,15 @@ const de_InvalidKMSResourceExceptionRes = async (parsedOutput, context) => {
590
596
  });
591
597
  return (0, smithy_client_1.decorateServiceException)(exception, body);
592
598
  };
599
+ const de_InvalidSourceExceptionRes = async (parsedOutput, context) => {
600
+ const body = parsedOutput.body;
601
+ const deserialized = (0, smithy_client_1._json)(body);
602
+ const exception = new models_0_1.InvalidSourceException({
603
+ $metadata: deserializeMetadata(parsedOutput),
604
+ ...deserialized,
605
+ });
606
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
607
+ };
593
608
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
594
609
  const body = parsedOutput.body;
595
610
  const deserialized = (0, smithy_client_1._json)(body);
@@ -219,6 +219,19 @@ export const DeliveryStreamStatus = {
219
219
  DELETING: "DELETING",
220
220
  DELETING_FAILED: "DELETING_FAILED",
221
221
  };
222
+ export class InvalidSourceException extends __BaseException {
223
+ constructor(opts) {
224
+ super({
225
+ name: "InvalidSourceException",
226
+ $fault: "client",
227
+ ...opts,
228
+ });
229
+ this.name = "InvalidSourceException";
230
+ this.$fault = "client";
231
+ Object.setPrototypeOf(this, InvalidSourceException.prototype);
232
+ this.code = opts.code;
233
+ }
234
+ }
222
235
  export class ServiceUnavailableException extends __BaseException {
223
236
  constructor(opts) {
224
237
  super({
@@ -1,7 +1,7 @@
1
1
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
2
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { FirehoseServiceException as __BaseException } from "../models/FirehoseServiceException";
4
- import { ConcurrentModificationException, InvalidArgumentException, InvalidKMSResourceException, LimitExceededException, ResourceInUseException, ResourceNotFoundException, ServiceUnavailableException, } from "../models/models_0";
4
+ import { ConcurrentModificationException, InvalidArgumentException, InvalidKMSResourceException, InvalidSourceException, LimitExceededException, ResourceInUseException, ResourceNotFoundException, ServiceUnavailableException, } from "../models/models_0";
5
5
  export const se_CreateDeliveryStreamCommand = async (input, context) => {
6
6
  const headers = sharedHeaders("CreateDeliveryStream");
7
7
  let body;
@@ -272,6 +272,9 @@ const de_PutRecordCommandError = async (output, context) => {
272
272
  case "InvalidKMSResourceException":
273
273
  case "com.amazonaws.firehose#InvalidKMSResourceException":
274
274
  throw await de_InvalidKMSResourceExceptionRes(parsedOutput, context);
275
+ case "InvalidSourceException":
276
+ case "com.amazonaws.firehose#InvalidSourceException":
277
+ throw await de_InvalidSourceExceptionRes(parsedOutput, context);
275
278
  case "ResourceNotFoundException":
276
279
  case "com.amazonaws.firehose#ResourceNotFoundException":
277
280
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -313,6 +316,9 @@ const de_PutRecordBatchCommandError = async (output, context) => {
313
316
  case "InvalidKMSResourceException":
314
317
  case "com.amazonaws.firehose#InvalidKMSResourceException":
315
318
  throw await de_InvalidKMSResourceExceptionRes(parsedOutput, context);
319
+ case "InvalidSourceException":
320
+ case "com.amazonaws.firehose#InvalidSourceException":
321
+ throw await de_InvalidSourceExceptionRes(parsedOutput, context);
316
322
  case "ResourceNotFoundException":
317
323
  case "com.amazonaws.firehose#ResourceNotFoundException":
318
324
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -563,6 +569,15 @@ const de_InvalidKMSResourceExceptionRes = async (parsedOutput, context) => {
563
569
  });
564
570
  return __decorateServiceException(exception, body);
565
571
  };
572
+ const de_InvalidSourceExceptionRes = async (parsedOutput, context) => {
573
+ const body = parsedOutput.body;
574
+ const deserialized = _json(body);
575
+ const exception = new InvalidSourceException({
576
+ $metadata: deserializeMetadata(parsedOutput),
577
+ ...deserialized,
578
+ });
579
+ return __decorateServiceException(exception, body);
580
+ };
566
581
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
567
582
  const body = parsedOutput.body;
568
583
  const deserialized = _json(body);
@@ -445,6 +445,10 @@ export interface CreateDeliveryStreamCommandOutput extends CreateDeliveryStreamO
445
445
  * ],
446
446
  * },
447
447
  * CloudWatchLoggingOptions: "<CloudWatchLoggingOptions>",
448
+ * BufferingHints: { // SplunkBufferingHints
449
+ * IntervalInSeconds: Number("int"),
450
+ * SizeInMBs: Number("int"),
451
+ * },
448
452
  * },
449
453
  * HttpEndpointDestinationConfiguration: { // HttpEndpointDestinationConfiguration
450
454
  * EndpointConfiguration: { // HttpEndpointConfiguration
@@ -421,6 +421,10 @@ export interface DescribeDeliveryStreamCommandOutput extends DescribeDeliveryStr
421
421
  * // ],
422
422
  * // },
423
423
  * // CloudWatchLoggingOptions: "<CloudWatchLoggingOptions>",
424
+ * // BufferingHints: { // SplunkBufferingHints
425
+ * // IntervalInSeconds: Number("int"),
426
+ * // SizeInMBs: Number("int"),
427
+ * // },
424
428
  * // },
425
429
  * // HttpEndpointDestinationDescription: { // HttpEndpointDestinationDescription
426
430
  * // EndpointConfiguration: { // HttpEndpointDescription
@@ -123,6 +123,9 @@ export interface PutRecordBatchCommandOutput extends PutRecordBatchOutput, __Met
123
123
  * <code>InvalidStateException</code>, <code>DisabledException</code>, or
124
124
  * <code>NotFoundException</code>.</p>
125
125
  *
126
+ * @throws {@link InvalidSourceException} (client fault)
127
+ * <p>Only requests from CloudWatch Logs are supported when CloudWatch Logs decompression is enabled.</p>
128
+ *
126
129
  * @throws {@link ResourceNotFoundException} (client fault)
127
130
  * <p>The specified resource could not be found.</p>
128
131
  *
@@ -96,6 +96,9 @@ export interface PutRecordCommandOutput extends PutRecordOutput, __MetadataBeare
96
96
  * <code>InvalidStateException</code>, <code>DisabledException</code>, or
97
97
  * <code>NotFoundException</code>.</p>
98
98
  *
99
+ * @throws {@link InvalidSourceException} (client fault)
100
+ * <p>Only requests from CloudWatch Logs are supported when CloudWatch Logs decompression is enabled.</p>
101
+ *
99
102
  * @throws {@link ResourceNotFoundException} (client fault)
100
103
  * <p>The specified resource could not be found.</p>
101
104
  *
@@ -372,6 +372,10 @@ export interface UpdateDestinationCommandOutput extends UpdateDestinationOutput,
372
372
  * ],
373
373
  * },
374
374
  * CloudWatchLoggingOptions: "<CloudWatchLoggingOptions>",
375
+ * BufferingHints: { // SplunkBufferingHints
376
+ * IntervalInSeconds: Number("int"),
377
+ * SizeInMBs: Number("int"),
378
+ * },
375
379
  * },
376
380
  * HttpEndpointDestinationUpdate: { // HttpEndpointDestinationUpdate
377
381
  * EndpointConfiguration: { // HttpEndpointConfiguration
@@ -2307,6 +2307,24 @@ export interface RedshiftDestinationConfiguration {
2307
2307
  */
2308
2308
  CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
2309
2309
  }
2310
+ /**
2311
+ * @public
2312
+ * <p>The buffering options. If no value is specified, the default values for Splunk are used.</p>
2313
+ */
2314
+ export interface SplunkBufferingHints {
2315
+ /**
2316
+ * @public
2317
+ * <p>Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 60 (1 minute).</p>
2318
+ */
2319
+ IntervalInSeconds?: number;
2320
+ /**
2321
+ * @public
2322
+ * <p>Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.
2323
+ *
2324
+ * </p>
2325
+ */
2326
+ SizeInMBs?: number;
2327
+ }
2310
2328
  /**
2311
2329
  * @public
2312
2330
  * @enum
@@ -2409,6 +2427,11 @@ export interface SplunkDestinationConfiguration {
2409
2427
  * <p>The Amazon CloudWatch logging options for your delivery stream.</p>
2410
2428
  */
2411
2429
  CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
2430
+ /**
2431
+ * @public
2432
+ * <p>The buffering options. If no value is specified, the default values for Splunk are used.</p>
2433
+ */
2434
+ BufferingHints?: SplunkBufferingHints;
2412
2435
  }
2413
2436
  /**
2414
2437
  * @public
@@ -3118,6 +3141,11 @@ export interface SplunkDestinationDescription {
3118
3141
  * <p>The Amazon CloudWatch logging options for your delivery stream.</p>
3119
3142
  */
3120
3143
  CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
3144
+ /**
3145
+ * @public
3146
+ * <p>The buffering options. If no value is specified, the default values for Splunk are used.</p>
3147
+ */
3148
+ BufferingHints?: SplunkBufferingHints;
3121
3149
  }
3122
3150
  /**
3123
3151
  * @public
@@ -3635,6 +3663,19 @@ export interface ListTagsForDeliveryStreamOutput {
3635
3663
  */
3636
3664
  HasMoreTags: boolean | undefined;
3637
3665
  }
3666
+ /**
3667
+ * @public
3668
+ * <p>Only requests from CloudWatch Logs are supported when CloudWatch Logs decompression is enabled.</p>
3669
+ */
3670
+ export declare class InvalidSourceException extends __BaseException {
3671
+ readonly name: "InvalidSourceException";
3672
+ readonly $fault: "client";
3673
+ code?: string;
3674
+ /**
3675
+ * @internal
3676
+ */
3677
+ constructor(opts: __ExceptionOptionType<InvalidSourceException, __BaseException>);
3678
+ }
3638
3679
  /**
3639
3680
  * @public
3640
3681
  * <p>The unit of data in a delivery stream.</p>
@@ -4028,6 +4069,11 @@ export interface SplunkDestinationUpdate {
4028
4069
  * <p>The Amazon CloudWatch logging options for your delivery stream.</p>
4029
4070
  */
4030
4071
  CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
4072
+ /**
4073
+ * @public
4074
+ * <p>The buffering options. If no value is specified, the default values for Splunk are used.</p>
4075
+ */
4076
+ BufferingHints?: SplunkBufferingHints;
4031
4077
  }
4032
4078
  /**
4033
4079
  * @public
@@ -490,6 +490,10 @@ export interface RedshiftDestinationConfiguration {
490
490
  S3BackupConfiguration?: S3DestinationConfiguration;
491
491
  CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
492
492
  }
493
+ export interface SplunkBufferingHints {
494
+ IntervalInSeconds?: number;
495
+ SizeInMBs?: number;
496
+ }
493
497
  export declare const HECEndpointType: {
494
498
  readonly Event: "Event";
495
499
  readonly Raw: "Raw";
@@ -515,6 +519,7 @@ export interface SplunkDestinationConfiguration {
515
519
  S3Configuration: S3DestinationConfiguration | undefined;
516
520
  ProcessingConfiguration?: ProcessingConfiguration;
517
521
  CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
522
+ BufferingHints?: SplunkBufferingHints;
518
523
  }
519
524
  export interface Tag {
520
525
  Key: string | undefined;
@@ -696,6 +701,7 @@ export interface SplunkDestinationDescription {
696
701
  S3DestinationDescription?: S3DestinationDescription;
697
702
  ProcessingConfiguration?: ProcessingConfiguration;
698
703
  CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
704
+ BufferingHints?: SplunkBufferingHints;
699
705
  }
700
706
  export interface DestinationDescription {
701
707
  DestinationId: string | undefined;
@@ -792,6 +798,14 @@ export interface ListTagsForDeliveryStreamOutput {
792
798
  Tags: Tag[] | undefined;
793
799
  HasMoreTags: boolean | undefined;
794
800
  }
801
+ export declare class InvalidSourceException extends __BaseException {
802
+ readonly name: "InvalidSourceException";
803
+ readonly $fault: "client";
804
+ code?: string;
805
+ constructor(
806
+ opts: __ExceptionOptionType<InvalidSourceException, __BaseException>
807
+ );
808
+ }
795
809
  export interface _Record {
796
810
  Data: Uint8Array | undefined;
797
811
  }
@@ -877,6 +891,7 @@ export interface SplunkDestinationUpdate {
877
891
  S3Update?: S3DestinationUpdate;
878
892
  ProcessingConfiguration?: ProcessingConfiguration;
879
893
  CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
894
+ BufferingHints?: SplunkBufferingHints;
880
895
  }
881
896
  export interface UpdateDestinationInput {
882
897
  DeliveryStreamName: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-firehose",
3
3
  "description": "AWS SDK for JavaScript Firehose Client for Node.js, Browser and React Native",
4
- "version": "3.470.0",
4
+ "version": "3.474.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.470.0",
24
- "@aws-sdk/core": "3.468.0",
25
- "@aws-sdk/credential-provider-node": "3.470.0",
23
+ "@aws-sdk/client-sts": "3.474.0",
24
+ "@aws-sdk/core": "3.474.0",
25
+ "@aws-sdk/credential-provider-node": "3.474.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",