@aws-sdk/client-kafka 3.321.1 → 3.322.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -0
- package/dist-cjs/Kafka.js +18 -0
- package/dist-cjs/commands/CreateVpcConnectionCommand.js +45 -0
- package/dist-cjs/commands/DeleteClusterPolicyCommand.js +45 -0
- package/dist-cjs/commands/DeleteVpcConnectionCommand.js +45 -0
- package/dist-cjs/commands/DescribeVpcConnectionCommand.js +45 -0
- package/dist-cjs/commands/GetClusterPolicyCommand.js +45 -0
- package/dist-cjs/commands/ListClientVpcConnectionsCommand.js +45 -0
- package/dist-cjs/commands/ListVpcConnectionsCommand.js +45 -0
- package/dist-cjs/commands/PutClusterPolicyCommand.js +45 -0
- package/dist-cjs/commands/RejectClientVpcConnectionCommand.js +45 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +15 -1
- package/dist-cjs/pagination/ListClientVpcConnectionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListVpcConnectionsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +769 -48
- package/dist-es/Kafka.js +18 -0
- package/dist-es/commands/CreateVpcConnectionCommand.js +41 -0
- package/dist-es/commands/DeleteClusterPolicyCommand.js +41 -0
- package/dist-es/commands/DeleteVpcConnectionCommand.js +41 -0
- package/dist-es/commands/DescribeVpcConnectionCommand.js +41 -0
- package/dist-es/commands/GetClusterPolicyCommand.js +41 -0
- package/dist-es/commands/ListClientVpcConnectionsCommand.js +41 -0
- package/dist-es/commands/ListVpcConnectionsCommand.js +41 -0
- package/dist-es/commands/PutClusterPolicyCommand.js +41 -0
- package/dist-es/commands/RejectClientVpcConnectionCommand.js +41 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +14 -0
- package/dist-es/pagination/ListClientVpcConnectionsPaginator.js +25 -0
- package/dist-es/pagination/ListVpcConnectionsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +747 -44
- package/dist-types/Kafka.d.ts +63 -0
- package/dist-types/KafkaClient.d.ts +11 -2
- package/dist-types/commands/CreateClusterCommand.d.ts +18 -0
- package/dist-types/commands/CreateClusterV2Command.d.ts +19 -3
- package/dist-types/commands/CreateVpcConnectionCommand.d.ts +92 -0
- package/dist-types/commands/DeleteClusterPolicyCommand.d.ts +75 -0
- package/dist-types/commands/DeleteVpcConnectionCommand.d.ts +75 -0
- package/dist-types/commands/DescribeVpcConnectionCommand.d.ts +81 -0
- package/dist-types/commands/GetClusterPolicyCommand.d.ts +75 -0
- package/dist-types/commands/ListClientVpcConnectionsCommand.d.ts +80 -0
- package/dist-types/commands/ListVpcConnectionsCommand.d.ts +79 -0
- package/dist-types/commands/PutClusterPolicyCommand.d.ts +74 -0
- package/dist-types/commands/RejectClientVpcConnectionCommand.d.ts +79 -0
- package/dist-types/commands/UpdateConnectivityCommand.d.ts +15 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +492 -0
- package/dist-types/pagination/ListClientVpcConnectionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListVpcConnectionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/dist-types/ts3.4/Kafka.d.ts +153 -0
- package/dist-types/ts3.4/KafkaClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/CreateVpcConnectionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteClusterPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteVpcConnectionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeVpcConnectionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetClusterPolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListClientVpcConnectionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListVpcConnectionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutClusterPolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/RejectClientVpcConnectionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +149 -0
- package/dist-types/ts3.4/pagination/ListClientVpcConnectionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListVpcConnectionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const s = "
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://kafka-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://kafka.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://kafka-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://kafka.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://kafka.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConflictException = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.BadRequestException = exports.NodeType = exports.KafkaVersionStatus = exports.ConfigurationState = exports.ClusterState = exports.StorageMode = exports.EnhancedMonitoring = exports.ClientBroker = exports.BrokerAZDistribution = exports.ClusterType = void 0;
|
|
3
|
+
exports.ConflictException = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.BadRequestException = exports.NodeType = exports.KafkaVersionStatus = exports.ConfigurationState = exports.UserIdentityType = exports.ClusterState = exports.StorageMode = exports.EnhancedMonitoring = exports.ClientBroker = exports.BrokerAZDistribution = exports.ClusterType = exports.VpcConnectionState = void 0;
|
|
4
4
|
const KafkaServiceException_1 = require("./KafkaServiceException");
|
|
5
|
+
exports.VpcConnectionState = {
|
|
6
|
+
AVAILABLE: "AVAILABLE",
|
|
7
|
+
CREATING: "CREATING",
|
|
8
|
+
DEACTIVATING: "DEACTIVATING",
|
|
9
|
+
DELETING: "DELETING",
|
|
10
|
+
FAILED: "FAILED",
|
|
11
|
+
INACTIVE: "INACTIVE",
|
|
12
|
+
REJECTED: "REJECTED",
|
|
13
|
+
REJECTING: "REJECTING",
|
|
14
|
+
};
|
|
5
15
|
exports.ClusterType = {
|
|
6
16
|
PROVISIONED: "PROVISIONED",
|
|
7
17
|
SERVERLESS: "SERVERLESS",
|
|
@@ -34,6 +44,10 @@ exports.ClusterState = {
|
|
|
34
44
|
REBOOTING_BROKER: "REBOOTING_BROKER",
|
|
35
45
|
UPDATING: "UPDATING",
|
|
36
46
|
};
|
|
47
|
+
exports.UserIdentityType = {
|
|
48
|
+
AWSACCOUNT: "AWSACCOUNT",
|
|
49
|
+
AWSSERVICE: "AWSSERVICE",
|
|
50
|
+
};
|
|
37
51
|
exports.ConfigurationState = {
|
|
38
52
|
ACTIVE: "ACTIVE",
|
|
39
53
|
DELETE_FAILED: "DELETE_FAILED",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListClientVpcConnections = void 0;
|
|
4
|
+
const ListClientVpcConnectionsCommand_1 = require("../commands/ListClientVpcConnectionsCommand");
|
|
5
|
+
const KafkaClient_1 = require("../KafkaClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListClientVpcConnectionsCommand_1.ListClientVpcConnectionsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListClientVpcConnections(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof KafkaClient_1.KafkaClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListClientVpcConnections = paginateListClientVpcConnections;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListVpcConnections = void 0;
|
|
4
|
+
const ListVpcConnectionsCommand_1 = require("../commands/ListVpcConnectionsCommand");
|
|
5
|
+
const KafkaClient_1 = require("../KafkaClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListVpcConnectionsCommand_1.ListVpcConnectionsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListVpcConnections(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof KafkaClient_1.KafkaClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListVpcConnections = paginateListVpcConnections;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ListClientVpcConnectionsPaginator"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./ListClusterOperationsPaginator"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./ListClustersPaginator"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./ListClustersV2Paginator"), exports);
|
|
@@ -10,3 +11,4 @@ tslib_1.__exportStar(require("./ListConfigurationsPaginator"), exports);
|
|
|
10
11
|
tslib_1.__exportStar(require("./ListKafkaVersionsPaginator"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./ListNodesPaginator"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./ListScramSecretsPaginator"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./ListVpcConnectionsPaginator"), exports);
|