@aws-sdk/client-firehose 3.35.0 → 3.36.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 (123) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist-cjs/Firehose.js +0 -1
  3. package/dist-cjs/FirehoseClient.js +0 -1
  4. package/dist-cjs/commands/CreateDeliveryStreamCommand.js +0 -1
  5. package/dist-cjs/commands/DeleteDeliveryStreamCommand.js +0 -1
  6. package/dist-cjs/commands/DescribeDeliveryStreamCommand.js +0 -1
  7. package/dist-cjs/commands/ListDeliveryStreamsCommand.js +0 -1
  8. package/dist-cjs/commands/ListTagsForDeliveryStreamCommand.js +0 -1
  9. package/dist-cjs/commands/PutRecordBatchCommand.js +0 -1
  10. package/dist-cjs/commands/PutRecordCommand.js +0 -1
  11. package/dist-cjs/commands/StartDeliveryStreamEncryptionCommand.js +0 -1
  12. package/dist-cjs/commands/StopDeliveryStreamEncryptionCommand.js +0 -1
  13. package/dist-cjs/commands/TagDeliveryStreamCommand.js +0 -1
  14. package/dist-cjs/commands/UntagDeliveryStreamCommand.js +0 -1
  15. package/dist-cjs/commands/UpdateDestinationCommand.js +0 -1
  16. package/dist-cjs/endpoints.js +0 -1
  17. package/dist-cjs/index.js +0 -1
  18. package/dist-cjs/models/index.js +0 -1
  19. package/dist-cjs/models/models_0.js +150 -93
  20. package/dist-cjs/protocols/Aws_json1_1.js +132 -1
  21. package/dist-cjs/runtimeConfig.browser.js +2 -3
  22. package/dist-cjs/runtimeConfig.js +3 -4
  23. package/dist-cjs/runtimeConfig.native.js +0 -1
  24. package/dist-cjs/runtimeConfig.shared.js +0 -1
  25. package/dist-es/Firehose.js +0 -1
  26. package/dist-es/FirehoseClient.js +0 -1
  27. package/dist-es/commands/CreateDeliveryStreamCommand.js +0 -1
  28. package/dist-es/commands/DeleteDeliveryStreamCommand.js +0 -1
  29. package/dist-es/commands/DescribeDeliveryStreamCommand.js +0 -1
  30. package/dist-es/commands/ListDeliveryStreamsCommand.js +0 -1
  31. package/dist-es/commands/ListTagsForDeliveryStreamCommand.js +0 -1
  32. package/dist-es/commands/PutRecordBatchCommand.js +0 -1
  33. package/dist-es/commands/PutRecordCommand.js +0 -1
  34. package/dist-es/commands/StartDeliveryStreamEncryptionCommand.js +0 -1
  35. package/dist-es/commands/StopDeliveryStreamEncryptionCommand.js +0 -1
  36. package/dist-es/commands/TagDeliveryStreamCommand.js +0 -1
  37. package/dist-es/commands/UntagDeliveryStreamCommand.js +0 -1
  38. package/dist-es/commands/UpdateDestinationCommand.js +0 -1
  39. package/dist-es/endpoints.js +0 -1
  40. package/dist-es/index.js +0 -1
  41. package/dist-es/models/index.js +0 -1
  42. package/dist-es/models/models_0.js +87 -55
  43. package/dist-es/protocols/Aws_json1_1.js +101 -3
  44. package/dist-es/runtimeConfig.browser.js +1 -2
  45. package/dist-es/runtimeConfig.js +2 -3
  46. package/dist-es/runtimeConfig.native.js +0 -1
  47. package/dist-es/runtimeConfig.shared.js +0 -1
  48. package/dist-types/models/models_0.d.ts +524 -397
  49. package/dist-types/ts3.4/models/models_0.d.ts +524 -397
  50. package/package.json +33 -30
  51. package/dist-cjs/Firehose.js.map +0 -1
  52. package/dist-cjs/FirehoseClient.js.map +0 -1
  53. package/dist-cjs/commands/CreateDeliveryStreamCommand.js.map +0 -1
  54. package/dist-cjs/commands/DeleteDeliveryStreamCommand.js.map +0 -1
  55. package/dist-cjs/commands/DescribeDeliveryStreamCommand.js.map +0 -1
  56. package/dist-cjs/commands/ListDeliveryStreamsCommand.js.map +0 -1
  57. package/dist-cjs/commands/ListTagsForDeliveryStreamCommand.js.map +0 -1
  58. package/dist-cjs/commands/PutRecordBatchCommand.js.map +0 -1
  59. package/dist-cjs/commands/PutRecordCommand.js.map +0 -1
  60. package/dist-cjs/commands/StartDeliveryStreamEncryptionCommand.js.map +0 -1
  61. package/dist-cjs/commands/StopDeliveryStreamEncryptionCommand.js.map +0 -1
  62. package/dist-cjs/commands/TagDeliveryStreamCommand.js.map +0 -1
  63. package/dist-cjs/commands/UntagDeliveryStreamCommand.js.map +0 -1
  64. package/dist-cjs/commands/UpdateDestinationCommand.js.map +0 -1
  65. package/dist-cjs/endpoints.js.map +0 -1
  66. package/dist-cjs/index.js.map +0 -1
  67. package/dist-cjs/models/index.js.map +0 -1
  68. package/dist-cjs/models/models_0.js.map +0 -1
  69. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  70. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  71. package/dist-cjs/runtimeConfig.js.map +0 -1
  72. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  73. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  74. package/dist-es/Firehose.js.map +0 -1
  75. package/dist-es/FirehoseClient.js.map +0 -1
  76. package/dist-es/commands/CreateDeliveryStreamCommand.js.map +0 -1
  77. package/dist-es/commands/DeleteDeliveryStreamCommand.js.map +0 -1
  78. package/dist-es/commands/DescribeDeliveryStreamCommand.js.map +0 -1
  79. package/dist-es/commands/ListDeliveryStreamsCommand.js.map +0 -1
  80. package/dist-es/commands/ListTagsForDeliveryStreamCommand.js.map +0 -1
  81. package/dist-es/commands/PutRecordBatchCommand.js.map +0 -1
  82. package/dist-es/commands/PutRecordCommand.js.map +0 -1
  83. package/dist-es/commands/StartDeliveryStreamEncryptionCommand.js.map +0 -1
  84. package/dist-es/commands/StopDeliveryStreamEncryptionCommand.js.map +0 -1
  85. package/dist-es/commands/TagDeliveryStreamCommand.js.map +0 -1
  86. package/dist-es/commands/UntagDeliveryStreamCommand.js.map +0 -1
  87. package/dist-es/commands/UpdateDestinationCommand.js.map +0 -1
  88. package/dist-es/endpoints.js.map +0 -1
  89. package/dist-es/index.js.map +0 -1
  90. package/dist-es/models/index.js.map +0 -1
  91. package/dist-es/models/models_0.js.map +0 -1
  92. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  93. package/dist-es/runtimeConfig.browser.js.map +0 -1
  94. package/dist-es/runtimeConfig.js.map +0 -1
  95. package/dist-es/runtimeConfig.native.js.map +0 -1
  96. package/dist-es/runtimeConfig.shared.js.map +0 -1
  97. package/jest.config.js +0 -4
  98. package/src/Firehose.ts +0 -705
  99. package/src/FirehoseClient.ts +0 -299
  100. package/src/commands/CreateDeliveryStreamCommand.ts +0 -163
  101. package/src/commands/DeleteDeliveryStreamCommand.ts +0 -104
  102. package/src/commands/DescribeDeliveryStreamCommand.ts +0 -101
  103. package/src/commands/ListDeliveryStreamsCommand.ts +0 -102
  104. package/src/commands/ListTagsForDeliveryStreamCommand.ts +0 -99
  105. package/src/commands/PutRecordBatchCommand.ts +0 -145
  106. package/src/commands/PutRecordCommand.ts +0 -123
  107. package/src/commands/StartDeliveryStreamEncryptionCommand.ts +0 -135
  108. package/src/commands/StopDeliveryStreamEncryptionCommand.ts +0 -119
  109. package/src/commands/TagDeliveryStreamCommand.ts +0 -103
  110. package/src/commands/UntagDeliveryStreamCommand.ts +0 -98
  111. package/src/commands/UpdateDestinationCommand.ts +0 -118
  112. package/src/endpoints.ts +0 -86
  113. package/src/index.ts +0 -15
  114. package/src/models/index.ts +0 -1
  115. package/src/models/models_0.ts +0 -3952
  116. package/src/protocols/Aws_json1_1.ts +0 -3514
  117. package/src/runtimeConfig.browser.ts +0 -41
  118. package/src/runtimeConfig.native.ts +0 -17
  119. package/src/runtimeConfig.shared.ts +0 -17
  120. package/src/runtimeConfig.ts +0 -46
  121. package/tsconfig.es.json +0 -10
  122. package/tsconfig.json +0 -33
  123. package/tsconfig.types.json +0 -9
@@ -1,119 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FirehoseClient";
15
- import { StopDeliveryStreamEncryptionInput, StopDeliveryStreamEncryptionOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1StopDeliveryStreamEncryptionCommand,
18
- serializeAws_json1_1StopDeliveryStreamEncryptionCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface StopDeliveryStreamEncryptionCommandInput extends StopDeliveryStreamEncryptionInput {}
22
- export interface StopDeliveryStreamEncryptionCommandOutput
23
- extends StopDeliveryStreamEncryptionOutput,
24
- __MetadataBearer {}
25
-
26
- /**
27
- * <p>Disables server-side encryption (SSE) for the delivery stream. </p>
28
- * <p>This operation is asynchronous. It returns immediately. When you invoke it, Kinesis Data
29
- * Firehose first sets the encryption status of the stream to <code>DISABLING</code>, and then
30
- * to <code>DISABLED</code>. You can continue to read and write data to your stream while its
31
- * status is <code>DISABLING</code>. It can take up to 5 seconds after the encryption status
32
- * changes to <code>DISABLED</code> before all records written to the delivery stream are no
33
- * longer subject to encryption. To find out whether a record or a batch of records was
34
- * encrypted, check the response elements <a>PutRecordOutput$Encrypted</a> and
35
- * <a>PutRecordBatchOutput$Encrypted</a>, respectively.</p>
36
- * <p>To check the encryption state of a delivery stream, use <a>DescribeDeliveryStream</a>. </p>
37
- * <p>If SSE is enabled using a customer managed CMK and then you invoke
38
- * <code>StopDeliveryStreamEncryption</code>, Kinesis Data Firehose schedules the related
39
- * KMS grant for retirement and then retires it after it ensures that it is finished
40
- * delivering records to the destination.</p>
41
- * <p>The <code>StartDeliveryStreamEncryption</code> and
42
- * <code>StopDeliveryStreamEncryption</code> operations have a combined limit of 25 calls
43
- * per delivery stream per 24 hours. For example, you reach the limit if you call
44
- * <code>StartDeliveryStreamEncryption</code> 13 times and
45
- * <code>StopDeliveryStreamEncryption</code> 12 times for the same delivery stream in a
46
- * 24-hour period.</p>
47
- * @example
48
- * Use a bare-bones client and the command you need to make an API call.
49
- * ```javascript
50
- * import { FirehoseClient, StopDeliveryStreamEncryptionCommand } from "@aws-sdk/client-firehose"; // ES Modules import
51
- * // const { FirehoseClient, StopDeliveryStreamEncryptionCommand } = require("@aws-sdk/client-firehose"); // CommonJS import
52
- * const client = new FirehoseClient(config);
53
- * const command = new StopDeliveryStreamEncryptionCommand(input);
54
- * const response = await client.send(command);
55
- * ```
56
- *
57
- * @see {@link StopDeliveryStreamEncryptionCommandInput} for command's `input` shape.
58
- * @see {@link StopDeliveryStreamEncryptionCommandOutput} for command's `response` shape.
59
- * @see {@link FirehoseClientResolvedConfig | config} for command's `input` shape.
60
- *
61
- */
62
- export class StopDeliveryStreamEncryptionCommand extends $Command<
63
- StopDeliveryStreamEncryptionCommandInput,
64
- StopDeliveryStreamEncryptionCommandOutput,
65
- FirehoseClientResolvedConfig
66
- > {
67
- // Start section: command_properties
68
- // End section: command_properties
69
-
70
- constructor(readonly input: StopDeliveryStreamEncryptionCommandInput) {
71
- // Start section: command_constructor
72
- super();
73
- // End section: command_constructor
74
- }
75
-
76
- /**
77
- * @internal
78
- */
79
- resolveMiddleware(
80
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
81
- configuration: FirehoseClientResolvedConfig,
82
- options?: __HttpHandlerOptions
83
- ): Handler<StopDeliveryStreamEncryptionCommandInput, StopDeliveryStreamEncryptionCommandOutput> {
84
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
85
-
86
- const stack = clientStack.concat(this.middlewareStack);
87
-
88
- const { logger } = configuration;
89
- const clientName = "FirehoseClient";
90
- const commandName = "StopDeliveryStreamEncryptionCommand";
91
- const handlerExecutionContext: HandlerExecutionContext = {
92
- logger,
93
- clientName,
94
- commandName,
95
- inputFilterSensitiveLog: StopDeliveryStreamEncryptionInput.filterSensitiveLog,
96
- outputFilterSensitiveLog: StopDeliveryStreamEncryptionOutput.filterSensitiveLog,
97
- };
98
- const { requestHandler } = configuration;
99
- return stack.resolve(
100
- (request: FinalizeHandlerArguments<any>) =>
101
- requestHandler.handle(request.request as __HttpRequest, options || {}),
102
- handlerExecutionContext
103
- );
104
- }
105
-
106
- private serialize(input: StopDeliveryStreamEncryptionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
107
- return serializeAws_json1_1StopDeliveryStreamEncryptionCommand(input, context);
108
- }
109
-
110
- private deserialize(
111
- output: __HttpResponse,
112
- context: __SerdeContext
113
- ): Promise<StopDeliveryStreamEncryptionCommandOutput> {
114
- return deserializeAws_json1_1StopDeliveryStreamEncryptionCommand(output, context);
115
- }
116
-
117
- // Start section: command_body_extra
118
- // End section: command_body_extra
119
- }
@@ -1,103 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FirehoseClient";
15
- import { TagDeliveryStreamInput, TagDeliveryStreamOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1TagDeliveryStreamCommand,
18
- serializeAws_json1_1TagDeliveryStreamCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface TagDeliveryStreamCommandInput extends TagDeliveryStreamInput {}
22
- export interface TagDeliveryStreamCommandOutput extends TagDeliveryStreamOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Adds or updates tags for the specified delivery stream. A tag is a key-value pair
26
- * that you can define and assign to AWS resources. If you specify a tag that already exists,
27
- * the tag value is replaced with the value that you specify in the request. Tags are
28
- * metadata. For example, you can add friendly names and descriptions or other types of
29
- * information that can help you distinguish the delivery stream. For more information about
30
- * tags, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using Cost Allocation
31
- * Tags</a> in the <i>AWS Billing and Cost Management User Guide</i>. </p>
32
- * <p>Each delivery stream can have up to 50 tags. </p>
33
- * <p>This operation has a limit of five transactions per second per account. </p>
34
- * @example
35
- * Use a bare-bones client and the command you need to make an API call.
36
- * ```javascript
37
- * import { FirehoseClient, TagDeliveryStreamCommand } from "@aws-sdk/client-firehose"; // ES Modules import
38
- * // const { FirehoseClient, TagDeliveryStreamCommand } = require("@aws-sdk/client-firehose"); // CommonJS import
39
- * const client = new FirehoseClient(config);
40
- * const command = new TagDeliveryStreamCommand(input);
41
- * const response = await client.send(command);
42
- * ```
43
- *
44
- * @see {@link TagDeliveryStreamCommandInput} for command's `input` shape.
45
- * @see {@link TagDeliveryStreamCommandOutput} for command's `response` shape.
46
- * @see {@link FirehoseClientResolvedConfig | config} for command's `input` shape.
47
- *
48
- */
49
- export class TagDeliveryStreamCommand extends $Command<
50
- TagDeliveryStreamCommandInput,
51
- TagDeliveryStreamCommandOutput,
52
- FirehoseClientResolvedConfig
53
- > {
54
- // Start section: command_properties
55
- // End section: command_properties
56
-
57
- constructor(readonly input: TagDeliveryStreamCommandInput) {
58
- // Start section: command_constructor
59
- super();
60
- // End section: command_constructor
61
- }
62
-
63
- /**
64
- * @internal
65
- */
66
- resolveMiddleware(
67
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
68
- configuration: FirehoseClientResolvedConfig,
69
- options?: __HttpHandlerOptions
70
- ): Handler<TagDeliveryStreamCommandInput, TagDeliveryStreamCommandOutput> {
71
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
72
-
73
- const stack = clientStack.concat(this.middlewareStack);
74
-
75
- const { logger } = configuration;
76
- const clientName = "FirehoseClient";
77
- const commandName = "TagDeliveryStreamCommand";
78
- const handlerExecutionContext: HandlerExecutionContext = {
79
- logger,
80
- clientName,
81
- commandName,
82
- inputFilterSensitiveLog: TagDeliveryStreamInput.filterSensitiveLog,
83
- outputFilterSensitiveLog: TagDeliveryStreamOutput.filterSensitiveLog,
84
- };
85
- const { requestHandler } = configuration;
86
- return stack.resolve(
87
- (request: FinalizeHandlerArguments<any>) =>
88
- requestHandler.handle(request.request as __HttpRequest, options || {}),
89
- handlerExecutionContext
90
- );
91
- }
92
-
93
- private serialize(input: TagDeliveryStreamCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
94
- return serializeAws_json1_1TagDeliveryStreamCommand(input, context);
95
- }
96
-
97
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagDeliveryStreamCommandOutput> {
98
- return deserializeAws_json1_1TagDeliveryStreamCommand(output, context);
99
- }
100
-
101
- // Start section: command_body_extra
102
- // End section: command_body_extra
103
- }
@@ -1,98 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FirehoseClient";
15
- import { UntagDeliveryStreamInput, UntagDeliveryStreamOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1UntagDeliveryStreamCommand,
18
- serializeAws_json1_1UntagDeliveryStreamCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface UntagDeliveryStreamCommandInput extends UntagDeliveryStreamInput {}
22
- export interface UntagDeliveryStreamCommandOutput extends UntagDeliveryStreamOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Removes tags from the specified delivery stream. Removed tags are deleted, and you
26
- * can't recover them after this operation successfully completes.</p>
27
- * <p>If you specify a tag that doesn't exist, the operation ignores it.</p>
28
- * <p>This operation has a limit of five transactions per second per account. </p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { FirehoseClient, UntagDeliveryStreamCommand } from "@aws-sdk/client-firehose"; // ES Modules import
33
- * // const { FirehoseClient, UntagDeliveryStreamCommand } = require("@aws-sdk/client-firehose"); // CommonJS import
34
- * const client = new FirehoseClient(config);
35
- * const command = new UntagDeliveryStreamCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link UntagDeliveryStreamCommandInput} for command's `input` shape.
40
- * @see {@link UntagDeliveryStreamCommandOutput} for command's `response` shape.
41
- * @see {@link FirehoseClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class UntagDeliveryStreamCommand extends $Command<
45
- UntagDeliveryStreamCommandInput,
46
- UntagDeliveryStreamCommandOutput,
47
- FirehoseClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: UntagDeliveryStreamCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: FirehoseClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<UntagDeliveryStreamCommandInput, UntagDeliveryStreamCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "FirehoseClient";
72
- const commandName = "UntagDeliveryStreamCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: UntagDeliveryStreamInput.filterSensitiveLog,
78
- outputFilterSensitiveLog: UntagDeliveryStreamOutput.filterSensitiveLog,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: UntagDeliveryStreamCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_json1_1UntagDeliveryStreamCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UntagDeliveryStreamCommandOutput> {
93
- return deserializeAws_json1_1UntagDeliveryStreamCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,118 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FirehoseClient";
15
- import { UpdateDestinationInput, UpdateDestinationOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1UpdateDestinationCommand,
18
- serializeAws_json1_1UpdateDestinationCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface UpdateDestinationCommandInput extends UpdateDestinationInput {}
22
- export interface UpdateDestinationCommandOutput extends UpdateDestinationOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Updates the specified destination of the specified delivery stream.</p>
26
- *
27
- * <p>Use this operation to change the destination type (for example, to replace the Amazon
28
- * S3 destination with Amazon Redshift) or change the parameters associated with a destination
29
- * (for example, to change the bucket name of the Amazon S3 destination). The update might not
30
- * occur immediately. The target delivery stream remains active while the configurations are
31
- * updated, so data writes to the delivery stream can continue during this process. The
32
- * updated configurations are usually effective within a few minutes.</p>
33
- * <p>Switching between Amazon ES and other services is not supported. For an Amazon ES
34
- * destination, you can only update to another Amazon ES destination.</p>
35
- * <p>If the destination type is the same, Kinesis Data Firehose merges the configuration
36
- * parameters specified with the destination configuration that already exists on the delivery
37
- * stream. If any of the parameters are not specified in the call, the existing values are
38
- * retained. For example, in the Amazon S3 destination, if <a>EncryptionConfiguration</a> is not specified, then the existing
39
- * <code>EncryptionConfiguration</code> is maintained on the destination.</p>
40
- * <p>If the destination type is not the same, for example, changing the destination from
41
- * Amazon S3 to Amazon Redshift, Kinesis Data Firehose does not merge any parameters. In this
42
- * case, all parameters must be specified.</p>
43
- *
44
- * <p>Kinesis Data Firehose uses <code>CurrentDeliveryStreamVersionId</code> to avoid race
45
- * conditions and conflicting merges. This is a required field, and the service updates the
46
- * configuration only if the existing configuration has a version ID that matches. After the
47
- * update is applied successfully, the version ID is updated, and can be retrieved using <a>DescribeDeliveryStream</a>. Use the new version ID to set
48
- * <code>CurrentDeliveryStreamVersionId</code> in the next call.</p>
49
- * @example
50
- * Use a bare-bones client and the command you need to make an API call.
51
- * ```javascript
52
- * import { FirehoseClient, UpdateDestinationCommand } from "@aws-sdk/client-firehose"; // ES Modules import
53
- * // const { FirehoseClient, UpdateDestinationCommand } = require("@aws-sdk/client-firehose"); // CommonJS import
54
- * const client = new FirehoseClient(config);
55
- * const command = new UpdateDestinationCommand(input);
56
- * const response = await client.send(command);
57
- * ```
58
- *
59
- * @see {@link UpdateDestinationCommandInput} for command's `input` shape.
60
- * @see {@link UpdateDestinationCommandOutput} for command's `response` shape.
61
- * @see {@link FirehoseClientResolvedConfig | config} for command's `input` shape.
62
- *
63
- */
64
- export class UpdateDestinationCommand extends $Command<
65
- UpdateDestinationCommandInput,
66
- UpdateDestinationCommandOutput,
67
- FirehoseClientResolvedConfig
68
- > {
69
- // Start section: command_properties
70
- // End section: command_properties
71
-
72
- constructor(readonly input: UpdateDestinationCommandInput) {
73
- // Start section: command_constructor
74
- super();
75
- // End section: command_constructor
76
- }
77
-
78
- /**
79
- * @internal
80
- */
81
- resolveMiddleware(
82
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
83
- configuration: FirehoseClientResolvedConfig,
84
- options?: __HttpHandlerOptions
85
- ): Handler<UpdateDestinationCommandInput, UpdateDestinationCommandOutput> {
86
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
87
-
88
- const stack = clientStack.concat(this.middlewareStack);
89
-
90
- const { logger } = configuration;
91
- const clientName = "FirehoseClient";
92
- const commandName = "UpdateDestinationCommand";
93
- const handlerExecutionContext: HandlerExecutionContext = {
94
- logger,
95
- clientName,
96
- commandName,
97
- inputFilterSensitiveLog: UpdateDestinationInput.filterSensitiveLog,
98
- outputFilterSensitiveLog: UpdateDestinationOutput.filterSensitiveLog,
99
- };
100
- const { requestHandler } = configuration;
101
- return stack.resolve(
102
- (request: FinalizeHandlerArguments<any>) =>
103
- requestHandler.handle(request.request as __HttpRequest, options || {}),
104
- handlerExecutionContext
105
- );
106
- }
107
-
108
- private serialize(input: UpdateDestinationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
109
- return serializeAws_json1_1UpdateDestinationCommand(input, context);
110
- }
111
-
112
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateDestinationCommandOutput> {
113
- return deserializeAws_json1_1UpdateDestinationCommand(output, context);
114
- }
115
-
116
- // Start section: command_body_extra
117
- // End section: command_body_extra
118
- }
package/src/endpoints.ts DELETED
@@ -1,86 +0,0 @@
1
- import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {
5
- "fips-us-east-1": {
6
- hostname: "firehose-fips.us-east-1.amazonaws.com",
7
- signingRegion: "us-east-1",
8
- },
9
- "fips-us-east-2": {
10
- hostname: "firehose-fips.us-east-2.amazonaws.com",
11
- signingRegion: "us-east-2",
12
- },
13
- "fips-us-gov-east-1": {
14
- hostname: "firehose-fips.us-gov-east-1.amazonaws.com",
15
- signingRegion: "us-gov-east-1",
16
- },
17
- "fips-us-gov-west-1": {
18
- hostname: "firehose-fips.us-gov-west-1.amazonaws.com",
19
- signingRegion: "us-gov-west-1",
20
- },
21
- "fips-us-west-1": {
22
- hostname: "firehose-fips.us-west-1.amazonaws.com",
23
- signingRegion: "us-west-1",
24
- },
25
- "fips-us-west-2": {
26
- hostname: "firehose-fips.us-west-2.amazonaws.com",
27
- signingRegion: "us-west-2",
28
- },
29
- };
30
-
31
- const partitionHash: PartitionHash = {
32
- aws: {
33
- regions: [
34
- "af-south-1",
35
- "ap-east-1",
36
- "ap-northeast-1",
37
- "ap-northeast-2",
38
- "ap-northeast-3",
39
- "ap-south-1",
40
- "ap-southeast-1",
41
- "ap-southeast-2",
42
- "ca-central-1",
43
- "eu-central-1",
44
- "eu-north-1",
45
- "eu-south-1",
46
- "eu-west-1",
47
- "eu-west-2",
48
- "eu-west-3",
49
- "fips-us-east-1",
50
- "fips-us-east-2",
51
- "fips-us-west-1",
52
- "fips-us-west-2",
53
- "me-south-1",
54
- "sa-east-1",
55
- "us-east-1",
56
- "us-east-2",
57
- "us-west-1",
58
- "us-west-2",
59
- ],
60
- hostname: "firehose.{region}.amazonaws.com",
61
- },
62
- "aws-cn": {
63
- regions: ["cn-north-1", "cn-northwest-1"],
64
- hostname: "firehose.{region}.amazonaws.com.cn",
65
- },
66
- "aws-iso": {
67
- regions: ["us-iso-east-1"],
68
- hostname: "firehose.{region}.c2s.ic.gov",
69
- },
70
- "aws-iso-b": {
71
- regions: ["us-isob-east-1"],
72
- hostname: "firehose.{region}.sc2s.sgov.gov",
73
- },
74
- "aws-us-gov": {
75
- regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
76
- hostname: "firehose.{region}.amazonaws.com",
77
- },
78
- };
79
-
80
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
81
- getRegionInfo(region, {
82
- ...options,
83
- signingService: "firehose",
84
- regionHash,
85
- partitionHash,
86
- });
package/src/index.ts DELETED
@@ -1,15 +0,0 @@
1
- export * from "./FirehoseClient";
2
- export * from "./Firehose";
3
- export * from "./commands/CreateDeliveryStreamCommand";
4
- export * from "./commands/DeleteDeliveryStreamCommand";
5
- export * from "./commands/DescribeDeliveryStreamCommand";
6
- export * from "./commands/ListDeliveryStreamsCommand";
7
- export * from "./commands/ListTagsForDeliveryStreamCommand";
8
- export * from "./commands/PutRecordCommand";
9
- export * from "./commands/PutRecordBatchCommand";
10
- export * from "./commands/StartDeliveryStreamEncryptionCommand";
11
- export * from "./commands/StopDeliveryStreamEncryptionCommand";
12
- export * from "./commands/TagDeliveryStreamCommand";
13
- export * from "./commands/UntagDeliveryStreamCommand";
14
- export * from "./commands/UpdateDestinationCommand";
15
- export * from "./models/index";
@@ -1 +0,0 @@
1
- export * from "./models_0";