# MapReference

A reference to a Map resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_location as interfaces_location } from 'aws-cdk-lib/interfaces';
const mapReference: interfaces_location.MapReference = {
  mapArn: 'mapArn',
  mapName: 'mapName',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_location as interfaces_location

map_reference = interfaces_location.MapReference(
    map_arn="mapArn",
    map_name="mapName"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.location.*;

MapReference mapReference = MapReference.builder()
        .mapArn("mapArn")
        .mapName("mapName")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.Location;

var mapReference = new MapReference {
    MapArn = "mapArn",
    MapName = "mapName"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

mapReference := &MapReference{
	MapArn: jsii.String("mapArn"),
	MapName: jsii.String("mapName"),
}
```

## Properties

- `mapArn`: string (required) — The ARN of the Map resource.

- `mapName`: string (required) — The MapName of the Map resource.
