Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a new MSK cluster.
Synopsis
- data CreateCluster = CreateCluster' {
- enhancedMonitoring :: Maybe EnhancedMonitoring
- openMonitoring :: Maybe OpenMonitoringInfo
- configurationInfo :: Maybe ConfigurationInfo
- loggingInfo :: Maybe LoggingInfo
- clientAuthentication :: Maybe ClientAuthentication
- tags :: Maybe (HashMap Text Text)
- encryptionInfo :: Maybe EncryptionInfo
- brokerNodeGroupInfo :: BrokerNodeGroupInfo
- kafkaVersion :: Text
- numberOfBrokerNodes :: Natural
- clusterName :: Text
- newCreateCluster :: BrokerNodeGroupInfo -> Text -> Natural -> Text -> CreateCluster
- createCluster_enhancedMonitoring :: Lens' CreateCluster (Maybe EnhancedMonitoring)
- createCluster_openMonitoring :: Lens' CreateCluster (Maybe OpenMonitoringInfo)
- createCluster_configurationInfo :: Lens' CreateCluster (Maybe ConfigurationInfo)
- createCluster_loggingInfo :: Lens' CreateCluster (Maybe LoggingInfo)
- createCluster_clientAuthentication :: Lens' CreateCluster (Maybe ClientAuthentication)
- createCluster_tags :: Lens' CreateCluster (Maybe (HashMap Text Text))
- createCluster_encryptionInfo :: Lens' CreateCluster (Maybe EncryptionInfo)
- createCluster_brokerNodeGroupInfo :: Lens' CreateCluster BrokerNodeGroupInfo
- createCluster_kafkaVersion :: Lens' CreateCluster Text
- createCluster_numberOfBrokerNodes :: Lens' CreateCluster Natural
- createCluster_clusterName :: Lens' CreateCluster Text
- data CreateClusterResponse = CreateClusterResponse' {
- state :: Maybe ClusterState
- clusterArn :: Maybe Text
- clusterName :: Maybe Text
- httpStatus :: Int
- newCreateClusterResponse :: Int -> CreateClusterResponse
- createClusterResponse_state :: Lens' CreateClusterResponse (Maybe ClusterState)
- createClusterResponse_clusterArn :: Lens' CreateClusterResponse (Maybe Text)
- createClusterResponse_clusterName :: Lens' CreateClusterResponse (Maybe Text)
- createClusterResponse_httpStatus :: Lens' CreateClusterResponse Int
Creating a Request
data CreateCluster Source #
See: newCreateCluster
smart constructor.
CreateCluster' | |
|
Instances
:: BrokerNodeGroupInfo | |
-> Text | |
-> Natural | |
-> Text | |
-> CreateCluster |
Create a value of CreateCluster
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:enhancedMonitoring:CreateCluster'
, createCluster_enhancedMonitoring
- Specifies the level of monitoring for the MSK cluster. The possible
values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and
PER_TOPIC_PER_PARTITION.
$sel:openMonitoring:CreateCluster'
, createCluster_openMonitoring
- The settings for open monitoring.
$sel:configurationInfo:CreateCluster'
, createCluster_configurationInfo
- Represents the configuration that you want MSK to use for the brokers in
a cluster.
$sel:loggingInfo:CreateCluster'
, createCluster_loggingInfo
- Undocumented member.
$sel:clientAuthentication:CreateCluster'
, createCluster_clientAuthentication
- Includes all client authentication related information.
$sel:tags:CreateCluster'
, createCluster_tags
- Create tags when creating the cluster.
$sel:encryptionInfo:CreateCluster'
, createCluster_encryptionInfo
- Includes all encryption-related information.
$sel:brokerNodeGroupInfo:CreateCluster'
, createCluster_brokerNodeGroupInfo
- Information about the broker nodes in the cluster.
$sel:kafkaVersion:CreateCluster'
, createCluster_kafkaVersion
- The version of Apache Kafka.
$sel:numberOfBrokerNodes:CreateCluster'
, createCluster_numberOfBrokerNodes
- The number of broker nodes in the cluster.
$sel:clusterName:CreateCluster'
, createCluster_clusterName
- The name of the cluster.
Request Lenses
createCluster_enhancedMonitoring :: Lens' CreateCluster (Maybe EnhancedMonitoring) Source #
Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
createCluster_openMonitoring :: Lens' CreateCluster (Maybe OpenMonitoringInfo) Source #
The settings for open monitoring.
createCluster_configurationInfo :: Lens' CreateCluster (Maybe ConfigurationInfo) Source #
Represents the configuration that you want MSK to use for the brokers in a cluster.
createCluster_loggingInfo :: Lens' CreateCluster (Maybe LoggingInfo) Source #
Undocumented member.
createCluster_clientAuthentication :: Lens' CreateCluster (Maybe ClientAuthentication) Source #
Includes all client authentication related information.
createCluster_tags :: Lens' CreateCluster (Maybe (HashMap Text Text)) Source #
Create tags when creating the cluster.
createCluster_encryptionInfo :: Lens' CreateCluster (Maybe EncryptionInfo) Source #
Includes all encryption-related information.
createCluster_brokerNodeGroupInfo :: Lens' CreateCluster BrokerNodeGroupInfo Source #
Information about the broker nodes in the cluster.
createCluster_kafkaVersion :: Lens' CreateCluster Text Source #
The version of Apache Kafka.
createCluster_numberOfBrokerNodes :: Lens' CreateCluster Natural Source #
The number of broker nodes in the cluster.
createCluster_clusterName :: Lens' CreateCluster Text Source #
The name of the cluster.
Destructuring the Response
data CreateClusterResponse Source #
See: newCreateClusterResponse
smart constructor.
CreateClusterResponse' | |
|
Instances
newCreateClusterResponse Source #
Create a value of CreateClusterResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:state:CreateClusterResponse'
, createClusterResponse_state
- The state of the cluster. The possible states are ACTIVE, CREATING,
DELETING, FAILED, HEALING, MAINTENANCE, REBOOTING_BROKER, and UPDATING.
$sel:clusterArn:CreateClusterResponse'
, createClusterResponse_clusterArn
- The Amazon Resource Name (ARN) of the cluster.
$sel:clusterName:CreateCluster'
, createClusterResponse_clusterName
- The name of the MSK cluster.
$sel:httpStatus:CreateClusterResponse'
, createClusterResponse_httpStatus
- The response's http status code.
Response Lenses
createClusterResponse_state :: Lens' CreateClusterResponse (Maybe ClusterState) Source #
The state of the cluster. The possible states are ACTIVE, CREATING, DELETING, FAILED, HEALING, MAINTENANCE, REBOOTING_BROKER, and UPDATING.
createClusterResponse_clusterArn :: Lens' CreateClusterResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the cluster.
createClusterResponse_clusterName :: Lens' CreateClusterResponse (Maybe Text) Source #
The name of the MSK cluster.
createClusterResponse_httpStatus :: Lens' CreateClusterResponse Int Source #
The response's http status code.