Class: AWSCDK::MSK::CfnCluster::ClientAuthenticationProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sasl: nil, tls: nil, unauthenticated: nil) ⇒ ClientAuthenticationProperty

Returns a new instance of ClientAuthenticationProperty.

Parameters:



867
868
869
870
871
872
873
874
# File 'msk/cfn_cluster.rb', line 867

def initialize(sasl: nil, tls: nil, unauthenticated: nil)
  @sasl = sasl.is_a?(Hash) ? ::AWSCDK::MSK::CfnCluster::SaslProperty.new(**sasl.transform_keys(&:to_sym)) : sasl
  Jsii::Type.check_type(@sasl, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tc2suQ2ZuQ2x1c3Rlci5TYXNsUHJvcGVydHkifV19fQ==")), "sasl") unless @sasl.nil?
  @tls = tls.is_a?(Hash) ? ::AWSCDK::MSK::CfnCluster::TLSProperty.new(**tls.transform_keys(&:to_sym)) : tls
  Jsii::Type.check_type(@tls, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tc2suQ2ZuQ2x1c3Rlci5UbHNQcm9wZXJ0eSJ9XX19")), "tls") unless @tls.nil?
  @unauthenticated = unauthenticated.is_a?(Hash) ? ::AWSCDK::MSK::CfnCluster::UnauthenticatedProperty.new(**unauthenticated.transform_keys(&:to_sym)) : unauthenticated
  Jsii::Type.check_type(@unauthenticated, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tc2suQ2ZuQ2x1c3Rlci5VbmF1dGhlbnRpY2F0ZWRQcm9wZXJ0eSJ9XX19")), "unauthenticated") unless @unauthenticated.nil?
end

Instance Attribute Details

#saslAWSCDK::IResolvable, ... (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.



882
883
884
# File 'msk/cfn_cluster.rb', line 882

def sasl
  @sasl
end

#tlsAWSCDK::IResolvable, ... (readonly)

Details for ClientAuthentication using TLS.

To turn on TLS access control, you must also turn on EncryptionInTransit by setting in_cluster to true and client_broker to TLS .



889
890
891
# File 'msk/cfn_cluster.rb', line 889

def tls
  @tls
end

#unauthenticatedAWSCDK::IResolvable, ... (readonly)

Details for ClientAuthentication using no authentication.



894
895
896
# File 'msk/cfn_cluster.rb', line 894

def unauthenticated
  @unauthenticated
end

Class Method Details

.jsii_propertiesObject



896
897
898
899
900
901
902
# File 'msk/cfn_cluster.rb', line 896

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

Instance Method Details

#to_jsiiObject



904
905
906
907
908
909
910
911
912
# File 'msk/cfn_cluster.rb', line 904

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