# NatInstanceImage

Machine image representing the latest NAT instance image.

Extends: [LookupMachineImage](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.LookupMachineImage.html) › NatInstanceImage
Implements: [IMachineImage](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IMachineImage.html)

- Source: [`aws-ec2/lib/nat.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ec2/lib/nat.ts#L871)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const natInstanceImage = new ec2.NatInstanceImage();
```

Python:

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

nat_instance_image = ec2.NatInstanceImage()
```

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.services.ec2.*;

NatInstanceImage natInstanceImage = new NatInstanceImage();
```

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.AWS.EC2;

var natInstanceImage = new NatInstanceImage();
```

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"

natInstanceImage := awscdk.Aws_ec2.NewNatInstanceImage()
```

## Initializer

TypeScript:

```ts
new NatInstanceImage()
```

Python:

```python
NatInstanceImage()
```

Java:

```java
new NatInstanceImage()
```

C# / .NET:

```csharp
new NatInstanceImage()
```

Golang:

```go
NewNatInstanceImage()
```

## Methods

- `getImage(scope: Construct): MachineImageConfig` — Return the correct image.
