@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:12.508Z") @Stability(value=Experimental) public class Cluster extends Resource implements ICluster
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.core.*;
Cluster cluster = Cluster.Builder.create(this, "Cluster")....build();
cluster.connections.allowFrom(Peer.ipv4("1.2.3.4/8"), Port.tcp(2181));
cluster.connections.allowFrom(Peer.ipv4("1.2.3.4/8"), Port.tcp(9094));
| Modifier and Type | Class and Description |
|---|---|
static class |
Cluster.Builder
(experimental) A fluent builder for
Cluster. |
software.amazon.jsii.JsiiObject.InitializationModeICluster.Jsii$Default, ICluster.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Cluster(software.constructs.Construct scope,
String id,
ClusterProps props) |
protected |
Cluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Cluster(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUser(String... usernames)
(experimental) A list of usersnames to register with the cluster.
|
static ICluster |
fromClusterArn(software.constructs.Construct scope,
String id,
String clusterArn)
(experimental) Reference an existing cluster, defined outside of the CDK code, by name.
|
String |
getBootstrapBrokers()
(experimental) Get the list of brokers that a client application can use to bootstrap.
|
String |
getBootstrapBrokersSaslScram()
(experimental) Get the list of brokers that a SASL/SCRAM authenticated client application can use to bootstrap.
|
String |
getBootstrapBrokersTls()
(experimental) Get the list of brokers that a TLS authenticated client application can use to bootstrap.
|
String |
getClusterArn()
(experimental) The ARN of cluster.
|
String |
getClusterName()
(experimental) The physical name of the cluster.
|
Connections |
getConnections()
(experimental) Manages connections for the cluster.
|
IKey |
getSaslScramAuthenticationKey()
(experimental) Key used to encrypt SASL/SCRAM users.
|
String |
getZookeeperConnectionString()
(experimental) Get the ZooKeeper Connection string.
|
String |
getZookeeperConnectionStringTls()
(experimental) Get the ZooKeeper Connection string for a TLS enabled cluster.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected Cluster(software.amazon.jsii.JsiiObjectRef objRef)
protected Cluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Cluster(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ClusterProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static ICluster fromClusterArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String clusterArn)
scope - This parameter is required.id - This parameter is required.clusterArn - This parameter is required.@Stability(value=Experimental)
public void addUser(@NotNull
String... usernames)
The password will automatically be generated using Secrets
Manager and the { username, password } JSON object stored in Secrets Manager as AmazonMSK_username.
Must be using the SASL/SCRAM authentication mechanism.
usernames - - username(s) to register with the cluster. This parameter is required.@Stability(value=Experimental) @NotNull public String getBootstrapBrokers()
Uses a Custom Resource to make an API call to getBootstrapBrokers using the Javascript SDK
@Stability(value=Experimental) @NotNull public String getBootstrapBrokersSaslScram()
Uses a Custom Resource to make an API call to getBootstrapBrokers using the Javascript SDK
@Stability(value=Experimental) @NotNull public String getBootstrapBrokersTls()
Uses a Custom Resource to make an API call to getBootstrapBrokers using the Javascript SDK
@Stability(value=Experimental) @NotNull public String getClusterArn()
getClusterArn in interface ICluster@Stability(value=Experimental) @NotNull public String getClusterName()
getClusterName in interface ICluster@Stability(value=Experimental) @NotNull public Connections getConnections()
getConnections in interface IConnectable@Stability(value=Experimental) @NotNull public String getZookeeperConnectionString()
Uses a Custom Resource to make an API call to describeCluster using the Javascript SDK
@Stability(value=Experimental) @NotNull public String getZookeeperConnectionStringTls()
Uses a Custom Resource to make an API call to describeCluster using the Javascript SDK
@Stability(value=Experimental) @Nullable public IKey getSaslScramAuthenticationKey()
Copyright © 2022. All rights reserved.