Class: AWSCDK::MSK::CfnServerlessCluster::ClientAuthenticationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
msk/cfn_serverless_cluster.rb

Overview

Includes all client authentication information.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sasl:) ⇒ ClientAuthenticationProperty

Returns a new instance of ClientAuthenticationProperty.

Parameters:



556
557
558
559
# File 'msk/cfn_serverless_cluster.rb', line 556

def initialize(sasl:)
  @sasl = sasl.is_a?(Hash) ? ::AWSCDK::MSK::CfnServerlessCluster::SaslProperty.new(**sasl.transform_keys(&:to_sym)) : sasl
  Jsii::Type.check_type(@sasl, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tc2suQ2ZuU2VydmVybGVzc0NsdXN0ZXIuU2FzbFByb3BlcnR5In1dfX0=")), "sasl")
end

Instance Attribute Details

#saslAWSCDK::IResolvable, AWSCDK::MSK::CfnServerlessCluster::SaslProperty (readonly)

Details for client authentication using SASL.

To turn on SASL, you must also turn on EncryptionInTransit by setting in_cluster to true. You must set client_broker to either TLS or TLS_PLAINTEXT . If you choose TLS_PLAINTEXT , then you must also set unauthenticated to true.



567
568
569
# File 'msk/cfn_serverless_cluster.rb', line 567

def sasl
  @sasl
end

Class Method Details

.jsii_propertiesObject



569
570
571
572
573
# File 'msk/cfn_serverless_cluster.rb', line 569

def self.jsii_properties
  {
    :sasl => "sasl",
  }
end

Instance Method Details

#to_jsiiObject



575
576
577
578
579
580
581
# File 'msk/cfn_serverless_cluster.rb', line 575

def to_jsii
  result = {}
  result.merge!({
    "sasl" => @sasl,
  })
  result.compact
end