# ConfigMap

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/ConfigMapV1.cs)
- Inherits: [BaseKubernetesResource](/reference/api/csharp/aspire.hosting.kubernetes/basekubernetesresource.md)

Represents a Kubernetes ConfigMap resource.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class ConfigMap
    : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
{
    // ...
}
```

## Remarks

A ConfigMap is used to store non-confidential data in key-value pairs. Applications running in a Kubernetes cluster can consume this configuration data. Derived from the BaseKubernetesResource class, this class includes properties specific to ConfigMap resources, such as BinaryData, Data, and Immutable, while also inheriting common Kubernetes resource properties like Kind, ApiVersion, and Metadata.

## Constructors

- [ConfigMap](/reference/api/csharp/aspire.hosting.kubernetes/configmap/constructors.md#constructor) -- Represents a Kubernetes ConfigMap resource.

## Properties

- [BinaryData](/reference/api/csharp/aspire.hosting.kubernetes/configmap/properties.md#binarydata) : `Dictionary<string, string>` `get` -- Represents a collection of binary data entries as key-value pairs within a ConfigMap object.
- [Data](/reference/api/csharp/aspire.hosting.kubernetes/configmap/properties.md#data) : `Dictionary<string, string>` `get` -- Represents a collection of key-value pairs where both the keys and the values are strings.
- [Immutable](/reference/api/csharp/aspire.hosting.kubernetes/configmap/properties.md#immutable) : `bool?` `get; set` -- Gets or sets a value indicating whether the ConfigMap is immutable.
