@aws-sdk/client-kafka 3.34.0 → 3.37.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/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/Kafka.js +1 -5
- package/{dist/cjs → dist-cjs}/KafkaClient.js +8 -17
- package/{dist/cjs → dist-cjs}/commands/BatchAssociateScramSecretCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/BatchDisassociateScramSecretCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateClusterCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateConfigurationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteClusterCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteConfigurationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeClusterCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeClusterOperationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeConfigurationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeConfigurationRevisionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetBootstrapBrokersCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetCompatibleKafkaVersionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListClusterOperationsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListClustersCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListConfigurationRevisionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListConfigurationsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListKafkaVersionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListNodesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListScramSecretsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/RebootBrokerCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateBrokerCountCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateBrokerStorageCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateBrokerTypeCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateClusterConfigurationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateClusterKafkaVersionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateConfigurationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateMonitoringCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateSecurityCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -334
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListClusterOperationsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListClustersPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListConfigurationRevisionsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListConfigurationsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListKafkaVersionsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListNodesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListScramSecretsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +6 -12
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/Kafka.js +1 -2
- package/{dist/es → dist-es}/KafkaClient.js +1 -2
- package/{dist/es → dist-es}/commands/BatchAssociateScramSecretCommand.js +2 -3
- package/{dist/es → dist-es}/commands/BatchDisassociateScramSecretCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateClusterCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateConfigurationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteClusterCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteConfigurationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeClusterCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeClusterOperationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeConfigurationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeConfigurationRevisionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetBootstrapBrokersCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetCompatibleKafkaVersionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListClusterOperationsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListClustersCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListConfigurationRevisionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListConfigurationsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListKafkaVersionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListNodesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListScramSecretsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/RebootBrokerCommand.js +2 -3
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateBrokerCountCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateBrokerStorageCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateBrokerTypeCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateClusterConfigurationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateClusterKafkaVersionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateConfigurationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateMonitoringCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateSecurityCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListClusterOperationsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListClustersPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListConfigurationRevisionsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListConfigurationsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListKafkaVersionsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListNodesPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListScramSecretsPaginator.js +1 -2
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/Kafka.d.ts +2 -2
- package/{dist/types → dist-types}/KafkaClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/BatchAssociateScramSecretCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/BatchDisassociateScramSecretCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateClusterCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteClusterCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeClusterCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeClusterOperationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeConfigurationRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetBootstrapBrokersCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetCompatibleKafkaVersionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListClusterOperationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListClustersCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListConfigurationRevisionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListConfigurationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListKafkaVersionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListNodesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListScramSecretsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RebootBrokerCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateBrokerCountCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateBrokerStorageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateBrokerTypeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateClusterConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateClusterKafkaVersionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateMonitoringCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateSecurityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListClusterOperationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListClustersPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListConfigurationRevisionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListConfigurationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListKafkaVersionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListNodesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListScramSecretsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/Kafka.d.ts +34 -98
- package/{dist/types → dist-types}/ts3.4/KafkaClient.d.ts +32 -97
- package/{dist/types → dist-types}/ts3.4/commands/BatchAssociateScramSecretCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/BatchDisassociateScramSecretCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/CreateClusterCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/CreateConfigurationCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DeleteConfigurationCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/DescribeClusterCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DescribeClusterOperationCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/DescribeConfigurationCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/DescribeConfigurationRevisionCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/GetBootstrapBrokersCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/GetCompatibleKafkaVersionsCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/ListClusterOperationsCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListConfigurationRevisionsCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/ListConfigurationsCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/ListKafkaVersionsCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/ListNodesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListScramSecretsCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/RebootBrokerCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/UpdateBrokerCountCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/UpdateBrokerStorageCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/UpdateBrokerTypeCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/UpdateClusterConfigurationCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/UpdateClusterKafkaVersionCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/UpdateConfigurationCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/UpdateMonitoringCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateSecurityCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1347 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListClusterOperationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListClustersPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListConfigurationRevisionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListConfigurationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListKafkaVersionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListNodesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListScramSecretsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/Kafka.ts +0 -1128
- package/KafkaClient.ts +0 -376
- package/commands/BatchAssociateScramSecretCommand.ts +0 -97
- package/commands/BatchDisassociateScramSecretCommand.ts +0 -99
- package/commands/CreateClusterCommand.ts +0 -94
- package/commands/CreateConfigurationCommand.ts +0 -94
- package/commands/DeleteClusterCommand.ts +0 -94
- package/commands/DeleteConfigurationCommand.ts +0 -94
- package/commands/DescribeClusterCommand.ts +0 -94
- package/commands/DescribeClusterOperationCommand.ts +0 -94
- package/commands/DescribeConfigurationCommand.ts +0 -94
- package/commands/DescribeConfigurationRevisionCommand.ts +0 -99
- package/commands/GetBootstrapBrokersCommand.ts +0 -94
- package/commands/GetCompatibleKafkaVersionsCommand.ts +0 -97
- package/commands/ListClusterOperationsCommand.ts +0 -94
- package/commands/ListClustersCommand.ts +0 -94
- package/commands/ListConfigurationRevisionsCommand.ts +0 -97
- package/commands/ListConfigurationsCommand.ts +0 -94
- package/commands/ListKafkaVersionsCommand.ts +0 -94
- package/commands/ListNodesCommand.ts +0 -94
- package/commands/ListScramSecretsCommand.ts +0 -94
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/RebootBrokerCommand.ts +0 -94
- package/commands/TagResourceCommand.ts +0 -94
- package/commands/UntagResourceCommand.ts +0 -94
- package/commands/UpdateBrokerCountCommand.ts +0 -94
- package/commands/UpdateBrokerStorageCommand.ts +0 -94
- package/commands/UpdateBrokerTypeCommand.ts +0 -94
- package/commands/UpdateClusterConfigurationCommand.ts +0 -97
- package/commands/UpdateClusterKafkaVersionCommand.ts +0 -97
- package/commands/UpdateConfigurationCommand.ts +0 -94
- package/commands/UpdateMonitoringCommand.ts +0 -94
- package/commands/UpdateSecurityCommand.ts +0 -94
- package/dist/cjs/Kafka.js.map +0 -1
- package/dist/cjs/KafkaClient.js.map +0 -1
- package/dist/cjs/commands/BatchAssociateScramSecretCommand.js.map +0 -1
- package/dist/cjs/commands/BatchDisassociateScramSecretCommand.js.map +0 -1
- package/dist/cjs/commands/CreateClusterCommand.js.map +0 -1
- package/dist/cjs/commands/CreateConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteClusterCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeClusterCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeClusterOperationCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeConfigurationRevisionCommand.js.map +0 -1
- package/dist/cjs/commands/GetBootstrapBrokersCommand.js.map +0 -1
- package/dist/cjs/commands/GetCompatibleKafkaVersionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListClusterOperationsCommand.js.map +0 -1
- package/dist/cjs/commands/ListClustersCommand.js.map +0 -1
- package/dist/cjs/commands/ListConfigurationRevisionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListConfigurationsCommand.js.map +0 -1
- package/dist/cjs/commands/ListKafkaVersionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListNodesCommand.js.map +0 -1
- package/dist/cjs/commands/ListScramSecretsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/RebootBrokerCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateBrokerCountCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateBrokerStorageCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateBrokerTypeCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateClusterConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateClusterKafkaVersionCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateMonitoringCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateSecurityCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListClusterOperationsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListClustersPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListConfigurationRevisionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListConfigurationsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListKafkaVersionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListNodesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListScramSecretsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/Kafka.js.map +0 -1
- package/dist/es/KafkaClient.js.map +0 -1
- package/dist/es/commands/BatchAssociateScramSecretCommand.js.map +0 -1
- package/dist/es/commands/BatchDisassociateScramSecretCommand.js.map +0 -1
- package/dist/es/commands/CreateClusterCommand.js.map +0 -1
- package/dist/es/commands/CreateConfigurationCommand.js.map +0 -1
- package/dist/es/commands/DeleteClusterCommand.js.map +0 -1
- package/dist/es/commands/DeleteConfigurationCommand.js.map +0 -1
- package/dist/es/commands/DescribeClusterCommand.js.map +0 -1
- package/dist/es/commands/DescribeClusterOperationCommand.js.map +0 -1
- package/dist/es/commands/DescribeConfigurationCommand.js.map +0 -1
- package/dist/es/commands/DescribeConfigurationRevisionCommand.js.map +0 -1
- package/dist/es/commands/GetBootstrapBrokersCommand.js.map +0 -1
- package/dist/es/commands/GetCompatibleKafkaVersionsCommand.js.map +0 -1
- package/dist/es/commands/ListClusterOperationsCommand.js.map +0 -1
- package/dist/es/commands/ListClustersCommand.js.map +0 -1
- package/dist/es/commands/ListConfigurationRevisionsCommand.js.map +0 -1
- package/dist/es/commands/ListConfigurationsCommand.js.map +0 -1
- package/dist/es/commands/ListKafkaVersionsCommand.js.map +0 -1
- package/dist/es/commands/ListNodesCommand.js.map +0 -1
- package/dist/es/commands/ListScramSecretsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/RebootBrokerCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateBrokerCountCommand.js.map +0 -1
- package/dist/es/commands/UpdateBrokerStorageCommand.js.map +0 -1
- package/dist/es/commands/UpdateBrokerTypeCommand.js.map +0 -1
- package/dist/es/commands/UpdateClusterConfigurationCommand.js.map +0 -1
- package/dist/es/commands/UpdateClusterKafkaVersionCommand.js.map +0 -1
- package/dist/es/commands/UpdateConfigurationCommand.js.map +0 -1
- package/dist/es/commands/UpdateMonitoringCommand.js.map +0 -1
- package/dist/es/commands/UpdateSecurityCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -43
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListClusterOperationsPaginator.js.map +0 -1
- package/dist/es/pagination/ListClustersPaginator.js.map +0 -1
- package/dist/es/pagination/ListConfigurationRevisionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListConfigurationsPaginator.js.map +0 -1
- package/dist/es/pagination/ListKafkaVersionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListNodesPaginator.js.map +0 -1
- package/dist/es/pagination/ListScramSecretsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/commands/DeleteClusterCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeClusterCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListClustersCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListNodesCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListScramSecretsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UpdateMonitoringCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UpdateSecurityCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -2255
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2872
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListClusterOperationsPaginator.ts +0 -58
- package/pagination/ListClustersPaginator.ts +0 -58
- package/pagination/ListConfigurationRevisionsPaginator.ts +0 -58
- package/pagination/ListConfigurationsPaginator.ts +0 -58
- package/pagination/ListKafkaVersionsPaginator.ts +0 -58
- package/pagination/ListNodesPaginator.ts +0 -54
- package/pagination/ListScramSecretsPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -5257
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
package/pagination/Interfaces.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Kafka } from "../Kafka";
|
|
2
|
-
import { KafkaClient } from "../KafkaClient";
|
|
3
|
-
import {
|
|
4
|
-
ListClusterOperationsCommand,
|
|
5
|
-
ListClusterOperationsCommandInput,
|
|
6
|
-
ListClusterOperationsCommandOutput,
|
|
7
|
-
} from "../commands/ListClusterOperationsCommand";
|
|
8
|
-
import { KafkaPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: KafkaClient,
|
|
16
|
-
input: ListClusterOperationsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListClusterOperationsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListClusterOperationsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: Kafka,
|
|
27
|
-
input: ListClusterOperationsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListClusterOperationsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listClusterOperations(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListClusterOperations(
|
|
34
|
-
config: KafkaPaginationConfiguration,
|
|
35
|
-
input: ListClusterOperationsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListClusterOperationsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListClusterOperationsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof Kafka) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof KafkaClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Kafka } from "../Kafka";
|
|
2
|
-
import { KafkaClient } from "../KafkaClient";
|
|
3
|
-
import {
|
|
4
|
-
ListClustersCommand,
|
|
5
|
-
ListClustersCommandInput,
|
|
6
|
-
ListClustersCommandOutput,
|
|
7
|
-
} from "../commands/ListClustersCommand";
|
|
8
|
-
import { KafkaPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: KafkaClient,
|
|
16
|
-
input: ListClustersCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListClustersCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListClustersCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: Kafka,
|
|
27
|
-
input: ListClustersCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListClustersCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listClusters(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListClusters(
|
|
34
|
-
config: KafkaPaginationConfiguration,
|
|
35
|
-
input: ListClustersCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListClustersCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListClustersCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof Kafka) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof KafkaClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Kafka } from "../Kafka";
|
|
2
|
-
import { KafkaClient } from "../KafkaClient";
|
|
3
|
-
import {
|
|
4
|
-
ListConfigurationRevisionsCommand,
|
|
5
|
-
ListConfigurationRevisionsCommandInput,
|
|
6
|
-
ListConfigurationRevisionsCommandOutput,
|
|
7
|
-
} from "../commands/ListConfigurationRevisionsCommand";
|
|
8
|
-
import { KafkaPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: KafkaClient,
|
|
16
|
-
input: ListConfigurationRevisionsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListConfigurationRevisionsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListConfigurationRevisionsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: Kafka,
|
|
27
|
-
input: ListConfigurationRevisionsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListConfigurationRevisionsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listConfigurationRevisions(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListConfigurationRevisions(
|
|
34
|
-
config: KafkaPaginationConfiguration,
|
|
35
|
-
input: ListConfigurationRevisionsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListConfigurationRevisionsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListConfigurationRevisionsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof Kafka) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof KafkaClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Kafka } from "../Kafka";
|
|
2
|
-
import { KafkaClient } from "../KafkaClient";
|
|
3
|
-
import {
|
|
4
|
-
ListConfigurationsCommand,
|
|
5
|
-
ListConfigurationsCommandInput,
|
|
6
|
-
ListConfigurationsCommandOutput,
|
|
7
|
-
} from "../commands/ListConfigurationsCommand";
|
|
8
|
-
import { KafkaPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: KafkaClient,
|
|
16
|
-
input: ListConfigurationsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListConfigurationsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListConfigurationsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: Kafka,
|
|
27
|
-
input: ListConfigurationsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListConfigurationsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listConfigurations(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListConfigurations(
|
|
34
|
-
config: KafkaPaginationConfiguration,
|
|
35
|
-
input: ListConfigurationsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListConfigurationsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListConfigurationsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof Kafka) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof KafkaClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Kafka } from "../Kafka";
|
|
2
|
-
import { KafkaClient } from "../KafkaClient";
|
|
3
|
-
import {
|
|
4
|
-
ListKafkaVersionsCommand,
|
|
5
|
-
ListKafkaVersionsCommandInput,
|
|
6
|
-
ListKafkaVersionsCommandOutput,
|
|
7
|
-
} from "../commands/ListKafkaVersionsCommand";
|
|
8
|
-
import { KafkaPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: KafkaClient,
|
|
16
|
-
input: ListKafkaVersionsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListKafkaVersionsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListKafkaVersionsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: Kafka,
|
|
27
|
-
input: ListKafkaVersionsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListKafkaVersionsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listKafkaVersions(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListKafkaVersions(
|
|
34
|
-
config: KafkaPaginationConfiguration,
|
|
35
|
-
input: ListKafkaVersionsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListKafkaVersionsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListKafkaVersionsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof Kafka) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof KafkaClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Kafka } from "../Kafka";
|
|
2
|
-
import { KafkaClient } from "../KafkaClient";
|
|
3
|
-
import { ListNodesCommand, ListNodesCommandInput, ListNodesCommandOutput } from "../commands/ListNodesCommand";
|
|
4
|
-
import { KafkaPaginationConfiguration } from "./Interfaces";
|
|
5
|
-
import { Paginator } from "@aws-sdk/types";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
|
-
const makePagedClientRequest = async (
|
|
11
|
-
client: KafkaClient,
|
|
12
|
-
input: ListNodesCommandInput,
|
|
13
|
-
...args: any
|
|
14
|
-
): Promise<ListNodesCommandOutput> => {
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
return await client.send(new ListNodesCommand(input), ...args);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @private
|
|
20
|
-
*/
|
|
21
|
-
const makePagedRequest = async (
|
|
22
|
-
client: Kafka,
|
|
23
|
-
input: ListNodesCommandInput,
|
|
24
|
-
...args: any
|
|
25
|
-
): Promise<ListNodesCommandOutput> => {
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
return await client.listNodes(input, ...args);
|
|
28
|
-
};
|
|
29
|
-
export async function* paginateListNodes(
|
|
30
|
-
config: KafkaPaginationConfiguration,
|
|
31
|
-
input: ListNodesCommandInput,
|
|
32
|
-
...additionalArguments: any
|
|
33
|
-
): Paginator<ListNodesCommandOutput> {
|
|
34
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
35
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
36
|
-
let hasNext = true;
|
|
37
|
-
let page: ListNodesCommandOutput;
|
|
38
|
-
while (hasNext) {
|
|
39
|
-
input.NextToken = token;
|
|
40
|
-
input["MaxResults"] = config.pageSize;
|
|
41
|
-
if (config.client instanceof Kafka) {
|
|
42
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
43
|
-
} else if (config.client instanceof KafkaClient) {
|
|
44
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
45
|
-
} else {
|
|
46
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
47
|
-
}
|
|
48
|
-
yield page;
|
|
49
|
-
token = page.NextToken;
|
|
50
|
-
hasNext = !!token;
|
|
51
|
-
}
|
|
52
|
-
// @ts-ignore
|
|
53
|
-
return undefined;
|
|
54
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Kafka } from "../Kafka";
|
|
2
|
-
import { KafkaClient } from "../KafkaClient";
|
|
3
|
-
import {
|
|
4
|
-
ListScramSecretsCommand,
|
|
5
|
-
ListScramSecretsCommandInput,
|
|
6
|
-
ListScramSecretsCommandOutput,
|
|
7
|
-
} from "../commands/ListScramSecretsCommand";
|
|
8
|
-
import { KafkaPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: KafkaClient,
|
|
16
|
-
input: ListScramSecretsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListScramSecretsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListScramSecretsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: Kafka,
|
|
27
|
-
input: ListScramSecretsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListScramSecretsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listScramSecrets(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListScramSecrets(
|
|
34
|
-
config: KafkaPaginationConfiguration,
|
|
35
|
-
input: ListScramSecretsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListScramSecretsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListScramSecretsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof Kafka) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof KafkaClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|