class NatInstanceImage
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.NatInstanceImage |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#NatInstanceImage |
Java | software.amazon.awscdk.services.ec2.NatInstanceImage |
Python | aws_cdk.aws_ec2.NatInstanceImage |
TypeScript (source) | aws-cdk-lib » aws_ec2 » NatInstanceImage |
Implements
IMachine
Extends
Lookup
Machine image representing the latest NAT instance image.
Example
// 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();
Initializer
new NatInstanceImage()
Methods
| Name | Description |
|---|---|
| get | Return the correct image. |
getImage(scope)
public getImage(scope: Construct): MachineImageConfig
Parameters
- scope
Construct
Returns
Return the correct image.

.NET
Go
Java
Python
TypeScript (