# ConfigMap Constructors

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [ConfigMap](/reference/api/csharp/aspire.hosting.kubernetes/configmap.md)
- Kind: `Constructors`
- Members: `1`

Represents a Kubernetes ConfigMap resource.

## ConfigMap

- Name: `Constructor`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/ConfigMapV1.cs#L18-L43)

Represents a Kubernetes ConfigMap resource.

```csharp
public sealed class ConfigMap
{
    public ConfigMap()
    {
        // ...
    }
}
```

## 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.
