diff --git a/clients/client-firehose/src/commands/CreateDeliveryStreamCommand.ts b/clients/client-firehose/src/commands/CreateDeliveryStreamCommand.ts
index 8b9ea6b2754a..c0baf212697f 100644
--- a/clients/client-firehose/src/commands/CreateDeliveryStreamCommand.ts
+++ b/clients/client-firehose/src/commands/CreateDeliveryStreamCommand.ts
@@ -463,6 +463,10 @@ export interface CreateDeliveryStreamCommandOutput extends CreateDeliveryStreamO
* ],
* },
* CloudWatchLoggingOptions: "InvalidStateException
, DisabledException
, or
* NotFoundException
.
Only requests from CloudWatch Logs are supported when CloudWatch Logs decompression is enabled.
+ * * @throws {@link ResourceNotFoundException} (client fault) *The specified resource could not be found.
* diff --git a/clients/client-firehose/src/commands/PutRecordCommand.ts b/clients/client-firehose/src/commands/PutRecordCommand.ts index f62d0373363c..b32b5155516a 100644 --- a/clients/client-firehose/src/commands/PutRecordCommand.ts +++ b/clients/client-firehose/src/commands/PutRecordCommand.ts @@ -110,6 +110,9 @@ export interface PutRecordCommandOutput extends PutRecordOutput, __MetadataBeare *InvalidStateException
, DisabledException
, or
* NotFoundException
.
*
+ * @throws {@link InvalidSourceException} (client fault)
+ * Only requests from CloudWatch Logs are supported when CloudWatch Logs decompression is enabled.
+ * * @throws {@link ResourceNotFoundException} (client fault) *The specified resource could not be found.
* diff --git a/clients/client-firehose/src/commands/UpdateDestinationCommand.ts b/clients/client-firehose/src/commands/UpdateDestinationCommand.ts index f378020c9ada..638432aded6c 100644 --- a/clients/client-firehose/src/commands/UpdateDestinationCommand.ts +++ b/clients/client-firehose/src/commands/UpdateDestinationCommand.ts @@ -390,6 +390,10 @@ export interface UpdateDestinationCommandOutput extends UpdateDestinationOutput, * ], * }, * CloudWatchLoggingOptions: "The buffering options. If no value is specified, the default values for Splunk are used.
+ */ +export interface SplunkBufferingHints { + /** + * @public + *Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 60 (1 minute).
+ */ + IntervalInSeconds?: number; + + /** + * @public + *Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. + * + *
+ */ + SizeInMBs?: number; +} + /** * @public * @enum @@ -2711,6 +2731,12 @@ export interface SplunkDestinationConfiguration { *The Amazon CloudWatch logging options for your delivery stream.
*/ CloudWatchLoggingOptions?: CloudWatchLoggingOptions; + + /** + * @public + *The buffering options. If no value is specified, the default values for Splunk are used.
+ */ + BufferingHints?: SplunkBufferingHints; } /** @@ -3550,6 +3576,12 @@ export interface SplunkDestinationDescription { *The Amazon CloudWatch logging options for your delivery stream.
*/ CloudWatchLoggingOptions?: CloudWatchLoggingOptions; + + /** + * @public + *The buffering options. If no value is specified, the default values for Splunk are used.
+ */ + BufferingHints?: SplunkBufferingHints; } /** @@ -4137,6 +4169,28 @@ export interface ListTagsForDeliveryStreamOutput { HasMoreTags: boolean | undefined; } +/** + * @public + *Only requests from CloudWatch Logs are supported when CloudWatch Logs decompression is enabled.
+ */ +export class InvalidSourceException extends __BaseException { + readonly name: "InvalidSourceException" = "InvalidSourceException"; + readonly $fault: "client" = "client"; + code?: string; + /** + * @internal + */ + constructor(opts: __ExceptionOptionTypeThe unit of data in a delivery stream.
@@ -4586,6 +4640,12 @@ export interface SplunkDestinationUpdate { *The Amazon CloudWatch logging options for your delivery stream.
*/ CloudWatchLoggingOptions?: CloudWatchLoggingOptions; + + /** + * @public + *The buffering options. If no value is specified, the default values for Splunk are used.
+ */ + BufferingHints?: SplunkBufferingHints; } /** diff --git a/clients/client-firehose/src/protocols/Aws_json1_1.ts b/clients/client-firehose/src/protocols/Aws_json1_1.ts index eb4356185173..e1395e0e0ca3 100644 --- a/clients/client-firehose/src/protocols/Aws_json1_1.ts +++ b/clients/client-firehose/src/protocols/Aws_json1_1.ts @@ -104,6 +104,7 @@ import { InputFormatConfiguration, InvalidArgumentException, InvalidKMSResourceException, + InvalidSourceException, KinesisStreamSourceConfiguration, KinesisStreamSourceDescription, KMSEncryptionConfig, @@ -133,6 +134,7 @@ import { Serializer, ServiceUnavailableException, SourceDescription, + SplunkBufferingHints, SplunkDestinationConfiguration, SplunkDestinationUpdate, SplunkRetryOptions, @@ -582,6 +584,9 @@ const de_PutRecordCommandError = async ( case "InvalidKMSResourceException": case "com.amazonaws.firehose#InvalidKMSResourceException": throw await de_InvalidKMSResourceExceptionRes(parsedOutput, context); + case "InvalidSourceException": + case "com.amazonaws.firehose#InvalidSourceException": + throw await de_InvalidSourceExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.firehose#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -637,6 +642,9 @@ const de_PutRecordBatchCommandError = async ( case "InvalidKMSResourceException": case "com.amazonaws.firehose#InvalidKMSResourceException": throw await de_InvalidKMSResourceExceptionRes(parsedOutput, context); + case "InvalidSourceException": + case "com.amazonaws.firehose#InvalidSourceException": + throw await de_InvalidSourceExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.firehose#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -979,6 +987,22 @@ const de_InvalidKMSResourceExceptionRes = async ( return __decorateServiceException(exception, body); }; +/** + * deserializeAws_json1_1InvalidSourceExceptionRes + */ +const de_InvalidSourceExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): PromiseOnly requests from CloudWatch Logs are supported when CloudWatch Logs decompression is enabled.
", + "smithy.api#error": "client" + } + }, "com.amazonaws.firehose#KMSEncryptionConfig": { "type": "structure", "members": { @@ -4937,6 +4952,9 @@ { "target": "com.amazonaws.firehose#InvalidKMSResourceException" }, + { + "target": "com.amazonaws.firehose#InvalidSourceException" + }, { "target": "com.amazonaws.firehose#ResourceNotFoundException" }, @@ -4963,6 +4981,9 @@ { "target": "com.amazonaws.firehose#InvalidKMSResourceException" }, + { + "target": "com.amazonaws.firehose#InvalidSourceException" + }, { "target": "com.amazonaws.firehose#ResourceNotFoundException" }, @@ -5783,6 +5804,44 @@ "smithy.api#documentation": "Details about a Kinesis data stream used as the source for a Kinesis Data Firehose\n delivery stream.
" } }, + "com.amazonaws.firehose#SplunkBufferingHints": { + "type": "structure", + "members": { + "IntervalInSeconds": { + "target": "com.amazonaws.firehose#SplunkBufferingIntervalInSeconds", + "traits": { + "smithy.api#documentation": "Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 60 (1 minute).
" + } + }, + "SizeInMBs": { + "target": "com.amazonaws.firehose#SplunkBufferingSizeInMBs", + "traits": { + "smithy.api#documentation": "Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.\n \n
" + } + } + }, + "traits": { + "smithy.api#documentation": "The buffering options. If no value is specified, the default values for Splunk are used.
" + } + }, + "com.amazonaws.firehose#SplunkBufferingIntervalInSeconds": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 0, + "max": 60 + } + } + }, + "com.amazonaws.firehose#SplunkBufferingSizeInMBs": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 5 + } + } + }, "com.amazonaws.firehose#SplunkDestinationConfiguration": { "type": "structure", "members": { @@ -5843,6 +5902,12 @@ "traits": { "smithy.api#documentation": "The Amazon CloudWatch logging options for your delivery stream.
" } + }, + "BufferingHints": { + "target": "com.amazonaws.firehose#SplunkBufferingHints", + "traits": { + "smithy.api#documentation": "The buffering options. If no value is specified, the default values for Splunk are used.
" + } } }, "traits": { @@ -5905,6 +5970,12 @@ "traits": { "smithy.api#documentation": "The Amazon CloudWatch logging options for your delivery stream.
" } + }, + "BufferingHints": { + "target": "com.amazonaws.firehose#SplunkBufferingHints", + "traits": { + "smithy.api#documentation": "The buffering options. If no value is specified, the default values for Splunk are used.
" + } } }, "traits": { @@ -5967,6 +6038,12 @@ "traits": { "smithy.api#documentation": "The Amazon CloudWatch logging options for your delivery stream.
" } + }, + "BufferingHints": { + "target": "com.amazonaws.firehose#SplunkBufferingHints", + "traits": { + "smithy.api#documentation": "The buffering options. If no value is specified, the default values for Splunk are used.
" + } } }, "traits": {