Class: AWSCDK::MSK::CfnServerlessClusterProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MSK::CfnServerlessClusterProps
- Defined in:
- msk/cfn_serverless_cluster_props.rb
Overview
Properties for defining a CfnServerlessCluster.
Instance Attribute Summary collapse
-
#client_authentication ⇒ AWSCDK::IResolvable, AWSCDK::MSK::CfnServerlessCluster::ClientAuthenticationProperty
readonly
Includes all client authentication related information.
-
#cluster_name ⇒ String
readonly
The name of the cluster.
-
#tags ⇒ Hash{String => String}?
readonly
An arbitrary set of tags (key-value pairs) for the cluster.
-
#vpc_configs ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::MSK::CfnServerlessCluster::VPCConfigProperty>
readonly
VPC configuration information for the serverless cluster.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(client_authentication:, cluster_name:, vpc_configs:, tags: nil) ⇒ CfnServerlessClusterProps
constructor
A new instance of CfnServerlessClusterProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(client_authentication:, cluster_name:, vpc_configs:, tags: nil) ⇒ CfnServerlessClusterProps
Returns a new instance of CfnServerlessClusterProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'msk/cfn_serverless_cluster_props.rb', line 13 def initialize(client_authentication:, cluster_name:, vpc_configs:, tags: nil) @client_authentication = client_authentication.is_a?(Hash) ? ::AWSCDK::MSK::CfnServerlessCluster::ClientAuthenticationProperty.new(**client_authentication.transform_keys(&:to_sym)) : client_authentication Jsii::Type.check_type(@client_authentication, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tc2suQ2ZuU2VydmVybGVzc0NsdXN0ZXIuQ2xpZW50QXV0aGVudGljYXRpb25Qcm9wZXJ0eSJ9XX19")), "clientAuthentication") @cluster_name = cluster_name Jsii::Type.check_type(@cluster_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterName") @vpc_configs = vpc_configs Jsii::Type.check_type(@vpc_configs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbXNrLkNmblNlcnZlcmxlc3NDbHVzdGVyLlZwY0NvbmZpZ1Byb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "vpcConfigs") @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#client_authentication ⇒ AWSCDK::IResolvable, AWSCDK::MSK::CfnServerlessCluster::ClientAuthenticationProperty (readonly)
Includes all client authentication related information.
28 29 30 |
# File 'msk/cfn_serverless_cluster_props.rb', line 28 def client_authentication @client_authentication end |
#cluster_name ⇒ String (readonly)
The name of the cluster.
33 34 35 |
# File 'msk/cfn_serverless_cluster_props.rb', line 33 def cluster_name @cluster_name end |
#tags ⇒ Hash{String => String}? (readonly)
An arbitrary set of tags (key-value pairs) for the cluster.
43 44 45 |
# File 'msk/cfn_serverless_cluster_props.rb', line 43 def @tags end |
#vpc_configs ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::MSK::CfnServerlessCluster::VPCConfigProperty> (readonly)
VPC configuration information for the serverless cluster.
38 39 40 |
# File 'msk/cfn_serverless_cluster_props.rb', line 38 def vpc_configs @vpc_configs end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'msk/cfn_serverless_cluster_props.rb', line 45 def self.jsii_properties { :client_authentication => "clientAuthentication", :cluster_name => "clusterName", :vpc_configs => "vpcConfigs", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'msk/cfn_serverless_cluster_props.rb', line 54 def to_jsii result = {} result.merge!({ "clientAuthentication" => @client_authentication, "clusterName" => @cluster_name, "vpcConfigs" => @vpc_configs, "tags" => @tags, }) result.compact end |