pub struct Builder { /* private fields */ }
Expand description

A builder for CreateClusterInput.

Implementations§

Information about the broker nodes in the cluster.

Examples found in repository?
src/client.rs (line 813)
812
813
814
815
        pub fn broker_node_group_info(mut self, input: crate::model::BrokerNodeGroupInfo) -> Self {
            self.inner = self.inner.broker_node_group_info(input);
            self
        }

Information about the broker nodes in the cluster.

Examples found in repository?
src/client.rs (line 821)
817
818
819
820
821
822
823
        pub fn set_broker_node_group_info(
            mut self,
            input: std::option::Option<crate::model::BrokerNodeGroupInfo>,
        ) -> Self {
            self.inner = self.inner.set_broker_node_group_info(input);
            self
        }

Includes all client authentication related information.

Examples found in repository?
src/client.rs (line 826)
825
826
827
828
        pub fn client_authentication(mut self, input: crate::model::ClientAuthentication) -> Self {
            self.inner = self.inner.client_authentication(input);
            self
        }

Includes all client authentication related information.

Examples found in repository?
src/client.rs (line 834)
830
831
832
833
834
835
836
        pub fn set_client_authentication(
            mut self,
            input: std::option::Option<crate::model::ClientAuthentication>,
        ) -> Self {
            self.inner = self.inner.set_client_authentication(input);
            self
        }

The name of the cluster.

Examples found in repository?
src/client.rs (line 839)
838
839
840
841
        pub fn cluster_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.cluster_name(input.into());
            self
        }

The name of the cluster.

Examples found in repository?
src/client.rs (line 844)
843
844
845
846
        pub fn set_cluster_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_cluster_name(input);
            self
        }

Represents the configuration that you want MSK to use for the brokers in a cluster.

Examples found in repository?
src/client.rs (line 849)
848
849
850
851
        pub fn configuration_info(mut self, input: crate::model::ConfigurationInfo) -> Self {
            self.inner = self.inner.configuration_info(input);
            self
        }

Represents the configuration that you want MSK to use for the brokers in a cluster.

Examples found in repository?
src/client.rs (line 857)
853
854
855
856
857
858
859
        pub fn set_configuration_info(
            mut self,
            input: std::option::Option<crate::model::ConfigurationInfo>,
        ) -> Self {
            self.inner = self.inner.set_configuration_info(input);
            self
        }

Includes all encryption-related information.

Examples found in repository?
src/client.rs (line 862)
861
862
863
864
        pub fn encryption_info(mut self, input: crate::model::EncryptionInfo) -> Self {
            self.inner = self.inner.encryption_info(input);
            self
        }

Includes all encryption-related information.

Examples found in repository?
src/client.rs (line 870)
866
867
868
869
870
871
872
        pub fn set_encryption_info(
            mut self,
            input: std::option::Option<crate::model::EncryptionInfo>,
        ) -> Self {
            self.inner = self.inner.set_encryption_info(input);
            self
        }

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.

Examples found in repository?
src/client.rs (line 875)
874
875
876
877
        pub fn enhanced_monitoring(mut self, input: crate::model::EnhancedMonitoring) -> Self {
            self.inner = self.inner.enhanced_monitoring(input);
            self
        }

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.

Examples found in repository?
src/client.rs (line 883)
879
880
881
882
883
884
885
        pub fn set_enhanced_monitoring(
            mut self,
            input: std::option::Option<crate::model::EnhancedMonitoring>,
        ) -> Self {
            self.inner = self.inner.set_enhanced_monitoring(input);
            self
        }

The settings for open monitoring.

Examples found in repository?
src/client.rs (line 888)
887
888
889
890
        pub fn open_monitoring(mut self, input: crate::model::OpenMonitoringInfo) -> Self {
            self.inner = self.inner.open_monitoring(input);
            self
        }

The settings for open monitoring.

Examples found in repository?
src/client.rs (line 896)
892
893
894
895
896
897
898
        pub fn set_open_monitoring(
            mut self,
            input: std::option::Option<crate::model::OpenMonitoringInfo>,
        ) -> Self {
            self.inner = self.inner.set_open_monitoring(input);
            self
        }

The version of Apache Kafka.

Examples found in repository?
src/client.rs (line 901)
900
901
902
903
        pub fn kafka_version(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.kafka_version(input.into());
            self
        }

The version of Apache Kafka.

Examples found in repository?
src/client.rs (line 909)
905
906
907
908
909
910
911
        pub fn set_kafka_version(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_kafka_version(input);
            self
        }
Examples found in repository?
src/client.rs (line 914)
913
914
915
916
        pub fn logging_info(mut self, input: crate::model::LoggingInfo) -> Self {
            self.inner = self.inner.logging_info(input);
            self
        }
Examples found in repository?
src/client.rs (line 922)
918
919
920
921
922
923
924
        pub fn set_logging_info(
            mut self,
            input: std::option::Option<crate::model::LoggingInfo>,
        ) -> Self {
            self.inner = self.inner.set_logging_info(input);
            self
        }

The number of broker nodes in the cluster.

Examples found in repository?
src/client.rs (line 927)
926
927
928
929
        pub fn number_of_broker_nodes(mut self, input: i32) -> Self {
            self.inner = self.inner.number_of_broker_nodes(input);
            self
        }

The number of broker nodes in the cluster.

Examples found in repository?
src/client.rs (line 932)
931
932
933
934
        pub fn set_number_of_broker_nodes(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_number_of_broker_nodes(input);
            self
        }

Adds a key-value pair to tags.

To override the contents of this collection use set_tags.

Create tags when creating the cluster.

Examples found in repository?
src/client.rs (line 945)
940
941
942
943
944
945
946
947
        pub fn tags(
            mut self,
            k: impl Into<std::string::String>,
            v: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.tags(k.into(), v.into());
            self
        }

Create tags when creating the cluster.

Examples found in repository?
src/client.rs (line 955)
949
950
951
952
953
954
955
956
957
        pub fn set_tags(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, std::string::String>,
            >,
        ) -> Self {
            self.inner = self.inner.set_tags(input);
            self
        }

Consumes the builder and constructs a CreateClusterInput.

Examples found in repository?
src/client.rs (line 780)
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
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more