Class: AWSCDK::AmazonMQ::CfnBroker::LdapServerMetadataProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
amazon_mq/cfn_broker.rb

Overview

Optional.

The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hosts:, role_base:, role_search_matching:, service_account_username:, user_base:, user_search_matching:, role_name: nil, role_search_subtree: nil, service_account_password: nil, user_role_name: nil, user_search_subtree: nil) ⇒ LdapServerMetadataProperty

Returns a new instance of LdapServerMetadataProperty.

Parameters:

  • hosts (Array<String>)
  • role_base (String)
  • role_search_matching (String)
  • service_account_username (String)
  • user_base (String)
  • user_search_matching (String)
  • role_name (String, nil) (defaults to: nil)
  • role_search_subtree (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)
  • service_account_password (String, nil) (defaults to: nil)
  • user_role_name (String, nil) (defaults to: nil)
  • user_search_subtree (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)


1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
# File 'amazon_mq/cfn_broker.rb', line 1013

def initialize(hosts:, role_base:, role_search_matching:, service_account_username:, user_base:, user_search_matching:, role_name: nil, role_search_subtree: nil, service_account_password: nil, user_role_name: nil, user_search_subtree: nil)
  @hosts = hosts
  Jsii::Type.check_type(@hosts, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "hosts")
  @role_base = role_base
  Jsii::Type.check_type(@role_base, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleBase")
  @role_search_matching = role_search_matching
  Jsii::Type.check_type(@role_search_matching, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleSearchMatching")
  @service_account_username = 
  Jsii::Type.check_type(@service_account_username, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceAccountUsername")
  @user_base = user_base
  Jsii::Type.check_type(@user_base, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userBase")
  @user_search_matching = user_search_matching
  Jsii::Type.check_type(@user_search_matching, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userSearchMatching")
  @role_name = role_name
  Jsii::Type.check_type(@role_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleName") unless @role_name.nil?
  @role_search_subtree = role_search_subtree
  Jsii::Type.check_type(@role_search_subtree, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "roleSearchSubtree") unless @role_search_subtree.nil?
  @service_account_password = 
  Jsii::Type.check_type(@service_account_password, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceAccountPassword") unless @service_account_password.nil?
  @user_role_name = user_role_name
  Jsii::Type.check_type(@user_role_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userRoleName") unless @user_role_name.nil?
  @user_search_subtree = user_search_subtree
  Jsii::Type.check_type(@user_search_subtree, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "userSearchSubtree") unless @user_search_subtree.nil?
end

Instance Attribute Details

#hostsArray<String> (readonly)



1040
1041
1042
# File 'amazon_mq/cfn_broker.rb', line 1040

def hosts
  @hosts
end

#role_baseString (readonly)



1043
1044
1045
# File 'amazon_mq/cfn_broker.rb', line 1043

def role_base
  @role_base
end

#role_nameString? (readonly)



1058
1059
1060
# File 'amazon_mq/cfn_broker.rb', line 1058

def role_name
  @role_name
end

#role_search_matchingString (readonly)



1046
1047
1048
# File 'amazon_mq/cfn_broker.rb', line 1046

def role_search_matching
  @role_search_matching
end

#role_search_subtreeBoolean, ... (readonly)



1061
1062
1063
# File 'amazon_mq/cfn_broker.rb', line 1061

def role_search_subtree
  @role_search_subtree
end

#service_account_passwordString? (readonly)



1064
1065
1066
# File 'amazon_mq/cfn_broker.rb', line 1064

def 
  @service_account_password
end

#service_account_usernameString (readonly)



1049
1050
1051
# File 'amazon_mq/cfn_broker.rb', line 1049

def 
  @service_account_username
end

#user_baseString (readonly)



1052
1053
1054
# File 'amazon_mq/cfn_broker.rb', line 1052

def user_base
  @user_base
end

#user_role_nameString? (readonly)



1067
1068
1069
# File 'amazon_mq/cfn_broker.rb', line 1067

def user_role_name
  @user_role_name
end

#user_search_matchingString (readonly)



1055
1056
1057
# File 'amazon_mq/cfn_broker.rb', line 1055

def user_search_matching
  @user_search_matching
end

#user_search_subtreeBoolean, ... (readonly)



1070
1071
1072
# File 'amazon_mq/cfn_broker.rb', line 1070

def user_search_subtree
  @user_search_subtree
end

Class Method Details

.jsii_propertiesObject



1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
# File 'amazon_mq/cfn_broker.rb', line 1072

def self.jsii_properties
  {
    :hosts => "hosts",
    :role_base => "roleBase",
    :role_search_matching => "roleSearchMatching",
    :service_account_username => "serviceAccountUsername",
    :user_base => "userBase",
    :user_search_matching => "userSearchMatching",
    :role_name => "roleName",
    :role_search_subtree => "roleSearchSubtree",
    :service_account_password => "serviceAccountPassword",
    :user_role_name => "userRoleName",
    :user_search_subtree => "userSearchSubtree",
  }
end

Instance Method Details

#to_jsiiObject



1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
# File 'amazon_mq/cfn_broker.rb', line 1088

def to_jsii
  result = {}
  result.merge!({
    "hosts" => @hosts,
    "roleBase" => @role_base,
    "roleSearchMatching" => @role_search_matching,
    "serviceAccountUsername" => @service_account_username,
    "userBase" => @user_base,
    "userSearchMatching" => @user_search_matching,
    "roleName" => @role_name,
    "roleSearchSubtree" => @role_search_subtree,
    "serviceAccountPassword" => @service_account_password,
    "userRoleName" => @user_role_name,
    "userSearchSubtree" => @user_search_subtree,
  })
  result.compact
end