Struct aws_sdk_kafka::input::CreateClusterInput
source · #[non_exhaustive]pub struct CreateClusterInput { /* private fields */ }
Implementations§
source§impl CreateClusterInput
impl CreateClusterInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateCluster, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateCluster, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateCluster
>
Examples found in repository?
src/client.rs (line 782)
768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateCluster,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateClusterError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateClusterOutput,
aws_smithy_http::result::SdkError<crate::error::CreateClusterError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateClusterInput
.
source§impl CreateClusterInput
impl CreateClusterInput
sourcepub fn broker_node_group_info(&self) -> Option<&BrokerNodeGroupInfo>
pub fn broker_node_group_info(&self) -> Option<&BrokerNodeGroupInfo>
Information about the broker nodes in the cluster.
sourcepub fn client_authentication(&self) -> Option<&ClientAuthentication>
pub fn client_authentication(&self) -> Option<&ClientAuthentication>
Includes all client authentication related information.
sourcepub fn cluster_name(&self) -> Option<&str>
pub fn cluster_name(&self) -> Option<&str>
The name of the cluster.
sourcepub fn configuration_info(&self) -> Option<&ConfigurationInfo>
pub fn configuration_info(&self) -> Option<&ConfigurationInfo>
Represents the configuration that you want MSK to use for the brokers in a cluster.
sourcepub fn encryption_info(&self) -> Option<&EncryptionInfo>
pub fn encryption_info(&self) -> Option<&EncryptionInfo>
Includes all encryption-related information.
sourcepub fn enhanced_monitoring(&self) -> Option<&EnhancedMonitoring>
pub fn enhanced_monitoring(&self) -> Option<&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.
sourcepub fn open_monitoring(&self) -> Option<&OpenMonitoringInfo>
pub fn open_monitoring(&self) -> Option<&OpenMonitoringInfo>
The settings for open monitoring.
sourcepub fn kafka_version(&self) -> Option<&str>
pub fn kafka_version(&self) -> Option<&str>
The version of Apache Kafka.
pub fn logging_info(&self) -> Option<&LoggingInfo>
sourcepub fn number_of_broker_nodes(&self) -> i32
pub fn number_of_broker_nodes(&self) -> i32
The number of broker nodes in the cluster.
Create tags when creating the cluster.
Trait Implementations§
source§impl Clone for CreateClusterInput
impl Clone for CreateClusterInput
source§fn clone(&self) -> CreateClusterInput
fn clone(&self) -> CreateClusterInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more