Kafka
public struct Kafka
Client object for interacting with AWS Kafka service.
The operations for managing an Amazon MSK cluster.
-
Undocumented
Declaration
Swift
public let client: AWSClient
-
Initialize the Kafka client
Declaration
Swift
public init(accessKeyId: String? = nil, secretAccessKey: String? = nil, sessionToken: String? = nil, region: AWSSDKSwiftCore.Region? = nil, endpoint: String? = nil, middlewares: [AWSServiceMiddleware] = [], eventLoopGroupProvider: AWSClient.EventLoopGroupProvider = .useAWSClientShared)
Parameters
accessKeyId
Public access key provided by AWS
secretAccessKey
Private access key provided by AWS
sessionToken
Token provided by STS.AssumeRole() which allows access to another AWS account
region
Region of server you want to communicate with
endpoint
Custom endpoint URL to use instead of standard AWS servers
middlewares
Array of middlewares to apply to requests and responses
eventLoopGroupProvider
EventLoopGroup to use. Use
useAWSClientShared
if the client shall manage its own EventLoopGroup.
-
Creates a new MSK cluster.
Declaration
Swift
public func createCluster(_ input: CreateClusterRequest) -> EventLoopFuture<CreateClusterResponse>
-
Creates a new MSK configuration.
Declaration
Swift
public func createConfiguration(_ input: CreateConfigurationRequest) -> EventLoopFuture<CreateConfigurationResponse>
-
Deletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request.
Declaration
Swift
public func deleteCluster(_ input: DeleteClusterRequest) -> EventLoopFuture<DeleteClusterResponse>
-
Deletes the specified MSK configuration. The configuration must be in the ACTIVE or DELETE_FAILED state.
Declaration
Swift
public func deleteConfiguration(_ input: DeleteConfigurationRequest) -> EventLoopFuture<DeleteConfigurationResponse>
-
Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
Declaration
Swift
public func describeCluster(_ input: DescribeClusterRequest) -> EventLoopFuture<DescribeClusterResponse>
-
Returns a description of the cluster operation specified by the ARN.
Declaration
Swift
public func describeClusterOperation(_ input: DescribeClusterOperationRequest) -> EventLoopFuture<DescribeClusterOperationResponse>
-
Returns a description of this MSK configuration.
Declaration
Swift
public func describeConfiguration(_ input: DescribeConfigurationRequest) -> EventLoopFuture<DescribeConfigurationResponse>
-
Returns a description of this revision of the configuration.
Declaration
Swift
public func describeConfigurationRevision(_ input: DescribeConfigurationRevisionRequest) -> EventLoopFuture<DescribeConfigurationRevisionResponse>
-
A list of brokers that a client application can use to bootstrap.
Declaration
Swift
public func getBootstrapBrokers(_ input: GetBootstrapBrokersRequest) -> EventLoopFuture<GetBootstrapBrokersResponse>
-
Gets the Apache Kafka versions to which you can update the MSK cluster.
Declaration
Swift
public func getCompatibleKafkaVersions(_ input: GetCompatibleKafkaVersionsRequest) -> EventLoopFuture<GetCompatibleKafkaVersionsResponse>
-
Returns a list of all the operations that have been performed on the specified MSK cluster.
Declaration
Swift
public func listClusterOperations(_ input: ListClusterOperationsRequest) -> EventLoopFuture<ListClusterOperationsResponse>
-
Returns a list of all the MSK clusters in the current Region.
Declaration
Swift
public func listClusters(_ input: ListClustersRequest) -> EventLoopFuture<ListClustersResponse>
-
Returns a list of all the revisions of an MSK configuration.
Declaration
Swift
public func listConfigurationRevisions(_ input: ListConfigurationRevisionsRequest) -> EventLoopFuture<ListConfigurationRevisionsResponse>
-
Returns a list of all the MSK configurations in this Region.
Declaration
Swift
public func listConfigurations(_ input: ListConfigurationsRequest) -> EventLoopFuture<ListConfigurationsResponse>
-
Returns a list of Kafka versions.
Declaration
Swift
public func listKafkaVersions(_ input: ListKafkaVersionsRequest) -> EventLoopFuture<ListKafkaVersionsResponse>
-
Returns a list of the broker nodes in the cluster.
Declaration
Swift
public func listNodes(_ input: ListNodesRequest) -> EventLoopFuture<ListNodesResponse>
-
Returns a list of the tags associated with the specified resource.
Declaration
Swift
public func listTagsForResource(_ input: ListTagsForResourceRequest) -> EventLoopFuture<ListTagsForResourceResponse>
-
Executes a reboot on a broker.
Declaration
Swift
public func rebootBroker(_ input: RebootBrokerRequest) -> EventLoopFuture<RebootBrokerResponse>
-
Adds tags to the specified MSK resource.
Declaration
Swift
@discardableResult public func tagResource(_ input: TagResourceRequest) -> EventLoopFuture<Void>
-
Removes the tags associated with the keys that are provided in the query.
Declaration
Swift
@discardableResult public func untagResource(_ input: UntagResourceRequest) -> EventLoopFuture<Void>
-
Updates the number of broker nodes in the cluster. You can use this operation to increase the number of brokers in an existing cluster. You can’t decrease the number of brokers.
Declaration
Swift
public func updateBrokerCount(_ input: UpdateBrokerCountRequest) -> EventLoopFuture<UpdateBrokerCountResponse>
-
Updates the EBS storage associated with MSK brokers.
Declaration
Swift
public func updateBrokerStorage(_ input: UpdateBrokerStorageRequest) -> EventLoopFuture<UpdateBrokerStorageResponse>
-
Updates the cluster with the configuration that is specified in the request body.
Declaration
Swift
public func updateClusterConfiguration(_ input: UpdateClusterConfigurationRequest) -> EventLoopFuture<UpdateClusterConfigurationResponse>
-
Updates the Apache Kafka version for the cluster.
Declaration
Swift
public func updateClusterKafkaVersion(_ input: UpdateClusterKafkaVersionRequest) -> EventLoopFuture<UpdateClusterKafkaVersionResponse>
-
Updates an existing MSK configuration. The configuration must be in the Active state.
Declaration
Swift
public func updateConfiguration(_ input: UpdateConfigurationRequest) -> EventLoopFuture<UpdateConfigurationResponse>
-
Updates the monitoring settings for the cluster. You can use this operation to specify which Apache Kafka metrics you want Amazon MSK to send to Amazon CloudWatch. You can also specify settings for open monitoring with Prometheus.
Declaration
Swift
public func updateMonitoring(_ input: UpdateMonitoringRequest) -> EventLoopFuture<UpdateMonitoringResponse>
-
Returns a list of all the operations that have been performed on the specified MSK cluster.
Declaration
Swift
public func listClusterOperationsPaginator(_ input: ListClusterOperationsRequest, onPage: @escaping (ListClusterOperationsResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Returns a list of all the MSK clusters in the current Region.
Declaration
Swift
public func listClustersPaginator(_ input: ListClustersRequest, onPage: @escaping (ListClustersResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Returns a list of all the revisions of an MSK configuration.
Declaration
Swift
public func listConfigurationRevisionsPaginator(_ input: ListConfigurationRevisionsRequest, onPage: @escaping (ListConfigurationRevisionsResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Returns a list of all the MSK configurations in this Region.
Declaration
Swift
public func listConfigurationsPaginator(_ input: ListConfigurationsRequest, onPage: @escaping (ListConfigurationsResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Returns a list of Kafka versions.
Declaration
Swift
public func listKafkaVersionsPaginator(_ input: ListKafkaVersionsRequest, onPage: @escaping (ListKafkaVersionsResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Returns a list of the broker nodes in the cluster.
Declaration
Swift
public func listNodesPaginator(_ input: ListNodesRequest, onPage: @escaping (ListNodesResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Undocumented
See moreDeclaration
Swift
public struct ListClusterOperationsRequest : AWSShape
extension Kafka.ListClusterOperationsRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListClustersRequest : AWSShape
extension Kafka.ListClustersRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListConfigurationRevisionsRequest : AWSShape
extension Kafka.ListConfigurationRevisionsRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListConfigurationsRequest : AWSShape
extension Kafka.ListConfigurationsRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListKafkaVersionsRequest : AWSShape
extension Kafka.ListKafkaVersionsRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListNodesRequest : AWSShape
extension Kafka.ListNodesRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public enum BrokerAZDistribution : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ClientBroker : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ClusterState : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ConfigurationState : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum EnhancedMonitoring : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum KafkaVersionStatus : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum NodeType : String, CustomStringConvertible, Codable