# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::V1::GcpConfig (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::GcpConfig.

Configuration properties for a Kafka cluster deployed to Google Cloud
Platform.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #access_config

    def access_config() -> ::Google::Cloud::ManagedKafka::V1::AccessConfig

**Returns**

- ([::Google::Cloud::ManagedKafka::V1::AccessConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-AccessConfig)) --- Required. Access configuration for the Kafka cluster.

### #access_config=

    def access_config=(value) -> ::Google::Cloud::ManagedKafka::V1::AccessConfig

**Parameter**

- **value** ([::Google::Cloud::ManagedKafka::V1::AccessConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-AccessConfig)) --- Required. Access configuration for the Kafka cluster.
**Returns**

- ([::Google::Cloud::ManagedKafka::V1::AccessConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-AccessConfig)) --- Required. Access configuration for the Kafka cluster.

### #kms_key

    def kms_key() -> ::String

**Returns**

- (::String) --- Optional. Immutable. The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Structured like: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

### #kms_key=

    def kms_key=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Immutable. The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Structured like: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
**Returns**

- (::String) --- Optional. Immutable. The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Structured like: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.