@aws-sdk/client-kafka 3.196.0 → 3.198.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 (32) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/Kafka.js +15 -0
  3. package/dist-cjs/commands/UpdateStorageCommand.js +46 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +16 -3
  6. package/dist-cjs/protocols/Aws_restJson1.js +89 -2
  7. package/dist-es/Kafka.js +15 -0
  8. package/dist-es/commands/UpdateStorageCommand.js +42 -0
  9. package/dist-es/commands/index.js +1 -0
  10. package/dist-es/models/models_0.js +11 -0
  11. package/dist-es/protocols/Aws_restJson1.js +85 -0
  12. package/dist-types/Kafka.d.ts +7 -0
  13. package/dist-types/KafkaClient.d.ts +3 -2
  14. package/dist-types/commands/UpdateStorageCommand.d.ts +37 -0
  15. package/dist-types/commands/index.d.ts +1 -0
  16. package/dist-types/endpoint/EndpointParameters.d.ts +2 -2
  17. package/dist-types/models/models_0.d.ts +72 -5
  18. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  19. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  20. package/dist-types/runtimeConfig.d.ts +1 -1
  21. package/dist-types/runtimeConfig.native.d.ts +1 -1
  22. package/dist-types/ts3.4/Kafka.d.ts +17 -0
  23. package/dist-types/ts3.4/KafkaClient.d.ts +8 -2
  24. package/dist-types/ts3.4/commands/UpdateStorageCommand.d.ts +37 -0
  25. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  26. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +9 -1
  27. package/dist-types/ts3.4/models/models_0.d.ts +26 -0
  28. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  29. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +10 -1
  30. package/dist-types/ts3.4/runtimeConfig.d.ts +10 -1
  31. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -8
  32. package/package.json +28 -28
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { KafkaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KafkaClient";
5
+ import { UpdateStorageRequest, UpdateStorageResponse } from "../models/models_0";
6
+ export interface UpdateStorageCommandInput extends UpdateStorageRequest {
7
+ }
8
+ export interface UpdateStorageCommandOutput extends UpdateStorageResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * Updates cluster broker volume size (or) sets cluster storage mode to TIERED.
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { KafkaClient, UpdateStorageCommand } from "@aws-sdk/client-kafka"; // ES Modules import
16
+ * // const { KafkaClient, UpdateStorageCommand } = require("@aws-sdk/client-kafka"); // CommonJS import
17
+ * const client = new KafkaClient(config);
18
+ * const command = new UpdateStorageCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link UpdateStorageCommandInput} for command's `input` shape.
23
+ * @see {@link UpdateStorageCommandOutput} for command's `response` shape.
24
+ * @see {@link KafkaClientResolvedConfig | config} for KafkaClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class UpdateStorageCommand extends $Command<UpdateStorageCommandInput, UpdateStorageCommandOutput, KafkaClientResolvedConfig> {
28
+ readonly input: UpdateStorageCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: UpdateStorageCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateStorageCommandInput, UpdateStorageCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -33,3 +33,4 @@ export * from "./UpdateConfigurationCommand";
33
33
  export * from "./UpdateConnectivityCommand";
34
34
  export * from "./UpdateMonitoringCommand";
35
35
  export * from "./UpdateSecurityCommand";
36
+ export * from "./UpdateStorageCommand";
@@ -1,9 +1,9 @@
1
- import { EndpointParameters as __EndpointParameters, Provider } from "@aws-sdk/types";
1
+ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@aws-sdk/types";
2
2
  export interface ClientInputEndpointParameters {
3
3
  region?: string | Provider<string>;
4
4
  useDualstackEndpoint?: boolean | Provider<boolean>;
5
5
  useFipsEndpoint?: boolean | Provider<boolean>;
6
- endpoint?: string | Provider<string>;
6
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
7
7
  }
8
8
  export declare type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
9
9
  defaultSigningName: string;
@@ -1,15 +1,15 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { KafkaServiceException as __BaseException } from "./KafkaServiceException";
3
3
  /**
4
- * Contains information about provisioned throughput for EBS storage volumes attached to kafka broker nodes.
4
+ * <p>Contains information about provisioned throughput for EBS storage volumes attached to kafka broker nodes.</p>
5
5
  */
6
6
  export interface ProvisionedThroughput {
7
7
  /**
8
- * Provisioned throughput is enabled or not.
8
+ * <p>Provisioned throughput is enabled or not.</p>
9
9
  */
10
10
  Enabled?: boolean;
11
11
  /**
12
- * Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second.
12
+ * <p>Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second.</p>
13
13
  */
14
14
  VolumeThroughput?: number;
15
15
  }
@@ -22,7 +22,7 @@ export interface BrokerEBSVolumeInfo {
22
22
  */
23
23
  KafkaBrokerNodeId: string | undefined;
24
24
  /**
25
- * EBS volume provisioned throughput information.
25
+ * <p>EBS volume provisioned throughput information.</p>
26
26
  */
27
27
  ProvisionedThroughput?: ProvisionedThroughput;
28
28
  /**
@@ -60,7 +60,7 @@ export interface ConnectivityInfo {
60
60
  */
61
61
  export interface EBSStorageInfo {
62
62
  /**
63
- * EBS volume provisioned throughput information.
63
+ * <p>EBS volume provisioned throughput information.</p>
64
64
  */
65
65
  ProvisionedThroughput?: ProvisionedThroughput;
66
66
  /**
@@ -307,6 +307,10 @@ export interface OpenMonitoringInfo {
307
307
  */
308
308
  Prometheus: PrometheusInfo | undefined;
309
309
  }
310
+ export declare enum StorageMode {
311
+ LOCAL = "LOCAL",
312
+ TIERED = "TIERED"
313
+ }
310
314
  /**
311
315
  * <p>Provisioned cluster.</p>
312
316
  */
@@ -351,6 +355,10 @@ export interface Provisioned {
351
355
  * <p>The connection string to use to connect to the Apache ZooKeeper cluster on a TLS port.</p>
352
356
  */
353
357
  ZookeeperConnectStringTls?: string;
358
+ /**
359
+ * <p>This controls storage mode for supported storage tiers.</p>
360
+ */
361
+ StorageMode?: StorageMode | string;
354
362
  }
355
363
  /**
356
364
  * <p>Details for client authentication using SASL.</p>
@@ -569,6 +577,10 @@ export interface ClusterInfo {
569
577
  * <p>The connection string to use to connect to zookeeper cluster on Tls port.</p>
570
578
  */
571
579
  ZookeeperConnectStringTls?: string;
580
+ /**
581
+ * <p>This controls storage mode for supported storage tiers.</p>
582
+ */
583
+ StorageMode?: StorageMode | string;
572
584
  }
573
585
  /**
574
586
  * <p>Returns information about an error state of the cluster.</p>
@@ -666,6 +678,10 @@ export interface MutableClusterInfo {
666
678
  * <p>Information about the broker access configuration.</p>
667
679
  */
668
680
  ConnectivityInfo?: ConnectivityInfo;
681
+ /**
682
+ * <p>This controls storage mode for supported storage tiers.</p>
683
+ */
684
+ StorageMode?: StorageMode | string;
669
685
  }
670
686
  /**
671
687
  * <p>Returns information about a cluster operation.</p>
@@ -1135,6 +1151,10 @@ export interface CreateClusterRequest {
1135
1151
  * <p>Create tags when creating the cluster.</p>
1136
1152
  */
1137
1153
  Tags?: Record<string, string>;
1154
+ /**
1155
+ * <p>This controls storage mode for supported storage tiers.</p>
1156
+ */
1157
+ StorageMode?: StorageMode | string;
1138
1158
  }
1139
1159
  export interface CreateClusterResponse {
1140
1160
  /**
@@ -1190,6 +1210,10 @@ export interface ProvisionedRequest {
1190
1210
  * <p>The number of broker nodes in the cluster.</p>
1191
1211
  */
1192
1212
  NumberOfBrokerNodes: number | undefined;
1213
+ /**
1214
+ * <p>This controls storage mode for supported storage tiers.</p>
1215
+ */
1216
+ StorageMode?: StorageMode | string;
1193
1217
  }
1194
1218
  /**
1195
1219
  * <p>Serverless cluster request.</p>
@@ -1972,6 +1996,41 @@ export interface UpdateSecurityResponse {
1972
1996
  */
1973
1997
  ClusterOperationArn?: string;
1974
1998
  }
1999
+ /**
2000
+ * <p>Request object for UpdateStorage api. Its used to update the storage attributes for the cluster.</p>
2001
+ */
2002
+ export interface UpdateStorageRequest {
2003
+ /**
2004
+ * <p>The Amazon Resource Name (ARN) of the cluster to be updated.</p>
2005
+ */
2006
+ ClusterArn: string | undefined;
2007
+ /**
2008
+ * <p>The version of cluster to update from. A successful operation will then generate a new version.</p>
2009
+ */
2010
+ CurrentVersion: string | undefined;
2011
+ /**
2012
+ * <p>EBS volume provisioned throughput information.</p>
2013
+ */
2014
+ ProvisionedThroughput?: ProvisionedThroughput;
2015
+ /**
2016
+ * <p>Controls storage mode for supported storage tiers.</p>
2017
+ */
2018
+ StorageMode?: StorageMode | string;
2019
+ /**
2020
+ * <p>size of the EBS volume to update.</p>
2021
+ */
2022
+ VolumeSizeGB?: number;
2023
+ }
2024
+ export interface UpdateStorageResponse {
2025
+ /**
2026
+ * <p>The Amazon Resource Name (ARN) of the cluster.</p>
2027
+ */
2028
+ ClusterArn?: string;
2029
+ /**
2030
+ * <p>The Amazon Resource Name (ARN) of the cluster operation.</p>
2031
+ */
2032
+ ClusterOperationArn?: string;
2033
+ }
1975
2034
  /**
1976
2035
  * @internal
1977
2036
  */
@@ -2460,3 +2519,11 @@ export declare const UpdateSecurityRequestFilterSensitiveLog: (obj: UpdateSecuri
2460
2519
  * @internal
2461
2520
  */
2462
2521
  export declare const UpdateSecurityResponseFilterSensitiveLog: (obj: UpdateSecurityResponse) => any;
2522
+ /**
2523
+ * @internal
2524
+ */
2525
+ export declare const UpdateStorageRequestFilterSensitiveLog: (obj: UpdateStorageRequest) => any;
2526
+ /**
2527
+ * @internal
2528
+ */
2529
+ export declare const UpdateStorageResponseFilterSensitiveLog: (obj: UpdateStorageResponse) => any;
@@ -35,6 +35,7 @@ import { UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput } fro
35
35
  import { UpdateConnectivityCommandInput, UpdateConnectivityCommandOutput } from "../commands/UpdateConnectivityCommand";
36
36
  import { UpdateMonitoringCommandInput, UpdateMonitoringCommandOutput } from "../commands/UpdateMonitoringCommand";
37
37
  import { UpdateSecurityCommandInput, UpdateSecurityCommandOutput } from "../commands/UpdateSecurityCommand";
38
+ import { UpdateStorageCommandInput, UpdateStorageCommandOutput } from "../commands/UpdateStorageCommand";
38
39
  export declare const serializeAws_restJson1BatchAssociateScramSecretCommand: (input: BatchAssociateScramSecretCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
39
40
  export declare const serializeAws_restJson1BatchDisassociateScramSecretCommand: (input: BatchDisassociateScramSecretCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
40
41
  export declare const serializeAws_restJson1CreateClusterCommand: (input: CreateClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -70,6 +71,7 @@ export declare const serializeAws_restJson1UpdateConfigurationCommand: (input: U
70
71
  export declare const serializeAws_restJson1UpdateConnectivityCommand: (input: UpdateConnectivityCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
71
72
  export declare const serializeAws_restJson1UpdateMonitoringCommand: (input: UpdateMonitoringCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
72
73
  export declare const serializeAws_restJson1UpdateSecurityCommand: (input: UpdateSecurityCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
74
+ export declare const serializeAws_restJson1UpdateStorageCommand: (input: UpdateStorageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
73
75
  export declare const deserializeAws_restJson1BatchAssociateScramSecretCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchAssociateScramSecretCommandOutput>;
74
76
  export declare const deserializeAws_restJson1BatchDisassociateScramSecretCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchDisassociateScramSecretCommandOutput>;
75
77
  export declare const deserializeAws_restJson1CreateClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateClusterCommandOutput>;
@@ -105,3 +107,4 @@ export declare const deserializeAws_restJson1UpdateConfigurationCommand: (output
105
107
  export declare const deserializeAws_restJson1UpdateConnectivityCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateConnectivityCommandOutput>;
106
108
  export declare const deserializeAws_restJson1UpdateMonitoringCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateMonitoringCommandOutput>;
107
109
  export declare const deserializeAws_restJson1UpdateSecurityCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateSecurityCommandOutput>;
110
+ export declare const deserializeAws_restJson1UpdateStorageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateStorageCommandOutput>;
@@ -26,7 +26,7 @@ export declare const getRuntimeConfig: (config: KafkaClientConfig) => {
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
29
- endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string>)) | undefined;
29
+ endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
30
30
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
32
32
  }) => import("@aws-sdk/types").EndpointV2;
@@ -26,7 +26,7 @@ export declare const getRuntimeConfig: (config: KafkaClientConfig) => {
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
29
- endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string>)) | undefined;
29
+ endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
30
30
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
32
32
  }) => import("@aws-sdk/types").EndpointV2;
@@ -25,7 +25,7 @@ export declare const getRuntimeConfig: (config: KafkaClientConfig) => {
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
27
27
  defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
28
- endpoint?: string | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> & import("@aws-sdk/types").Provider<string>) | (import("@aws-sdk/types").Endpoint & import("@aws-sdk/types").Provider<string>) | (import("@aws-sdk/types").EndpointV2 & import("@aws-sdk/types").Provider<string>) | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> & import("@aws-sdk/types").Provider<string>) | undefined;
28
+ endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> | undefined;
29
29
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
30
30
  logger?: import("@aws-sdk/types").Logger | undefined;
31
31
  }) => import("@aws-sdk/types").EndpointV2;
@@ -139,6 +139,10 @@ import {
139
139
  UpdateSecurityCommandInput,
140
140
  UpdateSecurityCommandOutput,
141
141
  } from "./commands/UpdateSecurityCommand";
142
+ import {
143
+ UpdateStorageCommandInput,
144
+ UpdateStorageCommandOutput,
145
+ } from "./commands/UpdateStorageCommand";
142
146
  import { KafkaClient } from "./KafkaClient";
143
147
  export declare class Kafka extends KafkaClient {
144
148
  batchAssociateScramSecret(
@@ -596,4 +600,17 @@ export declare class Kafka extends KafkaClient {
596
600
  options: __HttpHandlerOptions,
597
601
  cb: (err: any, data?: UpdateSecurityCommandOutput) => void
598
602
  ): void;
603
+ updateStorage(
604
+ args: UpdateStorageCommandInput,
605
+ options?: __HttpHandlerOptions
606
+ ): Promise<UpdateStorageCommandOutput>;
607
+ updateStorage(
608
+ args: UpdateStorageCommandInput,
609
+ cb: (err: any, data?: UpdateStorageCommandOutput) => void
610
+ ): void;
611
+ updateStorage(
612
+ args: UpdateStorageCommandInput,
613
+ options: __HttpHandlerOptions,
614
+ cb: (err: any, data?: UpdateStorageCommandOutput) => void
615
+ ): void;
599
616
  }
@@ -183,6 +183,10 @@ import {
183
183
  UpdateSecurityCommandInput,
184
184
  UpdateSecurityCommandOutput,
185
185
  } from "./commands/UpdateSecurityCommand";
186
+ import {
187
+ UpdateStorageCommandInput,
188
+ UpdateStorageCommandOutput,
189
+ } from "./commands/UpdateStorageCommand";
186
190
  import {
187
191
  ClientInputEndpointParameters,
188
192
  ClientResolvedEndpointParameters,
@@ -223,7 +227,8 @@ export declare type ServiceInputTypes =
223
227
  | UpdateConfigurationCommandInput
224
228
  | UpdateConnectivityCommandInput
225
229
  | UpdateMonitoringCommandInput
226
- | UpdateSecurityCommandInput;
230
+ | UpdateSecurityCommandInput
231
+ | UpdateStorageCommandInput;
227
232
  export declare type ServiceOutputTypes =
228
233
  | BatchAssociateScramSecretCommandOutput
229
234
  | BatchDisassociateScramSecretCommandOutput
@@ -259,7 +264,8 @@ export declare type ServiceOutputTypes =
259
264
  | UpdateConfigurationCommandOutput
260
265
  | UpdateConnectivityCommandOutput
261
266
  | UpdateMonitoringCommandOutput
262
- | UpdateSecurityCommandOutput;
267
+ | UpdateSecurityCommandOutput
268
+ | UpdateStorageCommandOutput;
263
269
  export interface ClientDefaults
264
270
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
265
271
  requestHandler?: __HttpHandler;
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ KafkaClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../KafkaClient";
14
+ import {
15
+ UpdateStorageRequest,
16
+ UpdateStorageResponse,
17
+ } from "../models/models_0";
18
+ export interface UpdateStorageCommandInput extends UpdateStorageRequest {}
19
+ export interface UpdateStorageCommandOutput
20
+ extends UpdateStorageResponse,
21
+ __MetadataBearer {}
22
+ export declare class UpdateStorageCommand extends $Command<
23
+ UpdateStorageCommandInput,
24
+ UpdateStorageCommandOutput,
25
+ KafkaClientResolvedConfig
26
+ > {
27
+ readonly input: UpdateStorageCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
29
+ constructor(input: UpdateStorageCommandInput);
30
+ resolveMiddleware(
31
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
32
+ configuration: KafkaClientResolvedConfig,
33
+ options?: __HttpHandlerOptions
34
+ ): Handler<UpdateStorageCommandInput, UpdateStorageCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -33,3 +33,4 @@ export * from "./UpdateConfigurationCommand";
33
33
  export * from "./UpdateConnectivityCommand";
34
34
  export * from "./UpdateMonitoringCommand";
35
35
  export * from "./UpdateSecurityCommand";
36
+ export * from "./UpdateStorageCommand";
@@ -1,12 +1,20 @@
1
1
  import {
2
+ Endpoint,
2
3
  EndpointParameters as __EndpointParameters,
4
+ EndpointV2,
3
5
  Provider,
4
6
  } from "@aws-sdk/types";
5
7
  export interface ClientInputEndpointParameters {
6
8
  region?: string | Provider<string>;
7
9
  useDualstackEndpoint?: boolean | Provider<boolean>;
8
10
  useFipsEndpoint?: boolean | Provider<boolean>;
9
- endpoint?: string | Provider<string>;
11
+ endpoint?:
12
+ | string
13
+ | Provider<string>
14
+ | Endpoint
15
+ | Provider<Endpoint>
16
+ | EndpointV2
17
+ | Provider<EndpointV2>;
10
18
  }
11
19
  export declare type ClientResolvedEndpointParameters =
12
20
  ClientInputEndpointParameters & {
@@ -120,6 +120,10 @@ export interface PrometheusInfo {
120
120
  export interface OpenMonitoringInfo {
121
121
  Prometheus: PrometheusInfo | undefined;
122
122
  }
123
+ export declare enum StorageMode {
124
+ LOCAL = "LOCAL",
125
+ TIERED = "TIERED",
126
+ }
123
127
  export interface Provisioned {
124
128
  BrokerNodeGroupInfo: BrokerNodeGroupInfo | undefined;
125
129
  CurrentBrokerSoftwareInfo?: BrokerSoftwareInfo;
@@ -131,6 +135,7 @@ export interface Provisioned {
131
135
  NumberOfBrokerNodes: number | undefined;
132
136
  ZookeeperConnectString?: string;
133
137
  ZookeeperConnectStringTls?: string;
138
+ StorageMode?: StorageMode | string;
134
139
  }
135
140
  export interface ServerlessSasl {
136
141
  Iam?: Iam;
@@ -205,6 +210,7 @@ export interface ClusterInfo {
205
210
  Tags?: Record<string, string>;
206
211
  ZookeeperConnectString?: string;
207
212
  ZookeeperConnectStringTls?: string;
213
+ StorageMode?: StorageMode | string;
208
214
  }
209
215
  export interface ErrorInfo {
210
216
  ErrorCode?: string;
@@ -233,6 +239,7 @@ export interface MutableClusterInfo {
233
239
  ClientAuthentication?: ClientAuthentication;
234
240
  EncryptionInfo?: EncryptionInfo;
235
241
  ConnectivityInfo?: ConnectivityInfo;
242
+ StorageMode?: StorageMode | string;
236
243
  }
237
244
  export interface ClusterOperationInfo {
238
245
  ClientRequestId?: string;
@@ -403,6 +410,7 @@ export interface CreateClusterRequest {
403
410
  LoggingInfo?: LoggingInfo;
404
411
  NumberOfBrokerNodes: number | undefined;
405
412
  Tags?: Record<string, string>;
413
+ StorageMode?: StorageMode | string;
406
414
  }
407
415
  export interface CreateClusterResponse {
408
416
  ClusterArn?: string;
@@ -419,6 +427,7 @@ export interface ProvisionedRequest {
419
427
  KafkaVersion: string | undefined;
420
428
  LoggingInfo?: LoggingInfo;
421
429
  NumberOfBrokerNodes: number | undefined;
430
+ StorageMode?: StorageMode | string;
422
431
  }
423
432
  export interface ServerlessRequest {
424
433
  VpcConfigs: VpcConfig[] | undefined;
@@ -701,6 +710,17 @@ export interface UpdateSecurityResponse {
701
710
  ClusterArn?: string;
702
711
  ClusterOperationArn?: string;
703
712
  }
713
+ export interface UpdateStorageRequest {
714
+ ClusterArn: string | undefined;
715
+ CurrentVersion: string | undefined;
716
+ ProvisionedThroughput?: ProvisionedThroughput;
717
+ StorageMode?: StorageMode | string;
718
+ VolumeSizeGB?: number;
719
+ }
720
+ export interface UpdateStorageResponse {
721
+ ClusterArn?: string;
722
+ ClusterOperationArn?: string;
723
+ }
704
724
  export declare const ProvisionedThroughputFilterSensitiveLog: (
705
725
  obj: ProvisionedThroughput
706
726
  ) => any;
@@ -1023,3 +1043,9 @@ export declare const UpdateSecurityRequestFilterSensitiveLog: (
1023
1043
  export declare const UpdateSecurityResponseFilterSensitiveLog: (
1024
1044
  obj: UpdateSecurityResponse
1025
1045
  ) => any;
1046
+ export declare const UpdateStorageRequestFilterSensitiveLog: (
1047
+ obj: UpdateStorageRequest
1048
+ ) => any;
1049
+ export declare const UpdateStorageResponseFilterSensitiveLog: (
1050
+ obj: UpdateStorageResponse
1051
+ ) => any;
@@ -143,6 +143,10 @@ import {
143
143
  UpdateSecurityCommandInput,
144
144
  UpdateSecurityCommandOutput,
145
145
  } from "../commands/UpdateSecurityCommand";
146
+ import {
147
+ UpdateStorageCommandInput,
148
+ UpdateStorageCommandOutput,
149
+ } from "../commands/UpdateStorageCommand";
146
150
  export declare const serializeAws_restJson1BatchAssociateScramSecretCommand: (
147
151
  input: BatchAssociateScramSecretCommandInput,
148
152
  context: __SerdeContext
@@ -283,6 +287,10 @@ export declare const serializeAws_restJson1UpdateSecurityCommand: (
283
287
  input: UpdateSecurityCommandInput,
284
288
  context: __SerdeContext
285
289
  ) => Promise<__HttpRequest>;
290
+ export declare const serializeAws_restJson1UpdateStorageCommand: (
291
+ input: UpdateStorageCommandInput,
292
+ context: __SerdeContext
293
+ ) => Promise<__HttpRequest>;
286
294
  export declare const deserializeAws_restJson1BatchAssociateScramSecretCommand: (
287
295
  output: __HttpResponse,
288
296
  context: __SerdeContext
@@ -423,3 +431,7 @@ export declare const deserializeAws_restJson1UpdateSecurityCommand: (
423
431
  output: __HttpResponse,
424
432
  context: __SerdeContext
425
433
  ) => Promise<UpdateSecurityCommandOutput>;
434
+ export declare const deserializeAws_restJson1UpdateStorageCommand: (
435
+ output: __HttpResponse,
436
+ context: __SerdeContext
437
+ ) => Promise<UpdateStorageCommandOutput>;
@@ -44,7 +44,16 @@ export declare const getRuntimeConfig: (config: KafkaClientConfig) => {
44
44
  | import("@aws-sdk/types").EndpointV2
45
45
  | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
46
46
  ) &
47
- (string | import("@aws-sdk/types").Provider<string>))
47
+ (
48
+ | string
49
+ | import("@aws-sdk/types").Provider<string>
50
+ | import("@aws-sdk/types").Endpoint
51
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
52
+ | import("@aws-sdk/types").EndpointV2
53
+ | import("@aws-sdk/types").Provider<
54
+ import("@aws-sdk/types").EndpointV2
55
+ >
56
+ ))
48
57
  | undefined;
49
58
  endpointProvider: (
50
59
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
@@ -44,7 +44,16 @@ export declare const getRuntimeConfig: (config: KafkaClientConfig) => {
44
44
  | import("@aws-sdk/types").EndpointV2
45
45
  | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
46
46
  ) &
47
- (string | import("@aws-sdk/types").Provider<string>))
47
+ (
48
+ | string
49
+ | import("@aws-sdk/types").Provider<string>
50
+ | import("@aws-sdk/types").Endpoint
51
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
52
+ | import("@aws-sdk/types").EndpointV2
53
+ | import("@aws-sdk/types").Provider<
54
+ import("@aws-sdk/types").EndpointV2
55
+ >
56
+ ))
48
57
  | undefined;
49
58
  endpointProvider: (
50
59
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
@@ -39,14 +39,10 @@ export declare const getRuntimeConfig: (config: KafkaClientConfig) => {
39
39
  >;
40
40
  endpoint?:
41
41
  | string
42
- | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> &
43
- import("@aws-sdk/types").Provider<string>)
44
- | (import("@aws-sdk/types").Endpoint &
45
- import("@aws-sdk/types").Provider<string>)
46
- | (import("@aws-sdk/types").EndpointV2 &
47
- import("@aws-sdk/types").Provider<string>)
48
- | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> &
49
- import("@aws-sdk/types").Provider<string>)
42
+ | import("@aws-sdk/types").Endpoint
43
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | import("@aws-sdk/types").EndpointV2
45
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
50
46
  | undefined;
51
47
  endpointProvider: (
52
48
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kafka",
3
3
  "description": "AWS SDK for JavaScript Kafka Client for Node.js, Browser and React Native",
4
- "version": "3.196.0",
4
+ "version": "3.198.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",
@@ -19,37 +19,37 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.196.0",
23
- "@aws-sdk/config-resolver": "3.193.0",
24
- "@aws-sdk/credential-provider-node": "3.196.0",
25
- "@aws-sdk/fetch-http-handler": "3.193.0",
26
- "@aws-sdk/hash-node": "3.193.0",
27
- "@aws-sdk/invalid-dependency": "3.193.0",
28
- "@aws-sdk/middleware-content-length": "3.193.0",
29
- "@aws-sdk/middleware-endpoint": "3.193.0",
30
- "@aws-sdk/middleware-host-header": "3.193.0",
31
- "@aws-sdk/middleware-logger": "3.193.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.193.0",
33
- "@aws-sdk/middleware-retry": "3.193.0",
34
- "@aws-sdk/middleware-serde": "3.193.0",
35
- "@aws-sdk/middleware-signing": "3.193.0",
36
- "@aws-sdk/middleware-stack": "3.193.0",
37
- "@aws-sdk/middleware-user-agent": "3.193.0",
38
- "@aws-sdk/node-config-provider": "3.193.0",
39
- "@aws-sdk/node-http-handler": "3.193.0",
40
- "@aws-sdk/protocol-http": "3.193.0",
41
- "@aws-sdk/smithy-client": "3.193.0",
42
- "@aws-sdk/types": "3.193.0",
43
- "@aws-sdk/url-parser": "3.193.0",
22
+ "@aws-sdk/client-sts": "3.198.0",
23
+ "@aws-sdk/config-resolver": "3.198.0",
24
+ "@aws-sdk/credential-provider-node": "3.198.0",
25
+ "@aws-sdk/fetch-http-handler": "3.198.0",
26
+ "@aws-sdk/hash-node": "3.198.0",
27
+ "@aws-sdk/invalid-dependency": "3.198.0",
28
+ "@aws-sdk/middleware-content-length": "3.198.0",
29
+ "@aws-sdk/middleware-endpoint": "3.198.0",
30
+ "@aws-sdk/middleware-host-header": "3.198.0",
31
+ "@aws-sdk/middleware-logger": "3.198.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.198.0",
33
+ "@aws-sdk/middleware-retry": "3.198.0",
34
+ "@aws-sdk/middleware-serde": "3.198.0",
35
+ "@aws-sdk/middleware-signing": "3.198.0",
36
+ "@aws-sdk/middleware-stack": "3.198.0",
37
+ "@aws-sdk/middleware-user-agent": "3.198.0",
38
+ "@aws-sdk/node-config-provider": "3.198.0",
39
+ "@aws-sdk/node-http-handler": "3.198.0",
40
+ "@aws-sdk/protocol-http": "3.198.0",
41
+ "@aws-sdk/smithy-client": "3.198.0",
42
+ "@aws-sdk/types": "3.198.0",
43
+ "@aws-sdk/url-parser": "3.198.0",
44
44
  "@aws-sdk/util-base64-browser": "3.188.0",
45
45
  "@aws-sdk/util-base64-node": "3.188.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.188.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.193.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.193.0",
50
- "@aws-sdk/util-endpoints": "3.196.0",
51
- "@aws-sdk/util-user-agent-browser": "3.193.0",
52
- "@aws-sdk/util-user-agent-node": "3.193.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.198.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.198.0",
50
+ "@aws-sdk/util-endpoints": "3.198.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.198.0",
52
+ "@aws-sdk/util-user-agent-node": "3.198.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
54
54
  "@aws-sdk/util-utf8-node": "3.188.0",
55
55
  "tslib": "^2.3.1"