# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::V1::TlsConfig (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.2 1.0.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::V1::TlsConfig.

The TLS configuration for the Kafka cluster.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #ssl_principal_mapping_rules

    def ssl_principal_mapping_rules() -> ::String

**Returns**

- (::String) --- Optional. A list of rules for mapping from SSL principal names to short names. These are applied in order by Kafka. Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules` for the precise formatting details and syntax. Example: "RULE:\^CN=(.*?),OU=ServiceUsers.* $/$1@example.com/,DEFAULT"


  This is a static Kafka broker configuration. Setting or modifying this
  field will trigger a rolling restart of the Kafka brokers to apply
  the change. An empty string means no rules are applied (Kafka default).

### #ssl_principal_mapping_rules=

    def ssl_principal_mapping_rules=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A list of rules for mapping from SSL principal names to short names. These are applied in order by Kafka. Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules` for the precise formatting details and syntax. Example: "RULE:\^CN=(.*?),OU=ServiceUsers.* $/$1@example.com/,DEFAULT"


  This is a static Kafka broker configuration. Setting or modifying this
  field will trigger a rolling restart of the Kafka brokers to apply
  the change. An empty string means no rules are applied (Kafka default).
**Returns**

- (::String) --- Optional. A list of rules for mapping from SSL principal names to short names. These are applied in order by Kafka. Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules` for the precise formatting details and syntax. Example: "RULE:\^CN=(.*?),OU=ServiceUsers.* $/$1@example.com/,DEFAULT"


  This is a static Kafka broker configuration. Setting or modifying this
  field will trigger a rolling restart of the Kafka brokers to apply
  the change. An empty string means no rules are applied (Kafka default).

### #trust_config

    def trust_config() -> ::Google::Cloud::ManagedKafka::V1::TrustConfig

**Returns**

- ([::Google::Cloud::ManagedKafka::V1::TrustConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-TrustConfig)) --- Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.

### #trust_config=

    def trust_config=(value) -> ::Google::Cloud::ManagedKafka::V1::TrustConfig

**Parameter**

- **value** ([::Google::Cloud::ManagedKafka::V1::TrustConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-TrustConfig)) --- Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
**Returns**

- ([::Google::Cloud::ManagedKafka::V1::TrustConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-TrustConfig)) --- Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.