NatInstanceImage Class
Machine image representing the latest NAT instance image.
Example
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
# 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
// 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();
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();
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
ts
new NatInstanceImage()
python
NatInstanceImage()
java
new NatInstanceImage()
csharp
new NatInstanceImage()
go
NewNatInstanceImage()
Methods
getImage(scope: Construct): MachineImageConfigdef get_image(self, scope: Construct) -> MachineImageConfigpublic MachineImageConfig getImage(Construct scope)public MachineImageConfig GetImage(Construct scope)func GetImage(Scope Construct) MachineImageConfig#Return the correct image.