aws-cdk-lib.aws_ec2.NatInstanceImage

class NatInstanceImage

LanguageType name
.NETAmazon.CDK.AWS.EC2.NatInstanceImage
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#NatInstanceImage
Javasoftware.amazon.awscdk.services.ec2.NatInstanceImage
Pythonaws_cdk.aws_ec2.NatInstanceImage
TypeScript (source)aws-cdk-lib » aws_ec2 » NatInstanceImage

Implements IMachineImage

Extends LookupMachineImage

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

NameDescription
getImage(scope)Return the image to use in the given context.

getImage(scope)

public getImage(scope: Construct): MachineImageConfig

Parameters

  • scope Construct

Returns

  • MachineImageConfig

Return the image to use in the given context.