NatInstanceImage

class aws_cdk.aws_ec2.NatInstanceImage

Bases: aws_cdk.aws_ec2.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_cdk.aws_ec2 as ec2

nat_instance_image = ec2.NatInstanceImage()
Parameters
  • filters – Additional filters on the AMI. Default: - No additional filters

  • name – Name of the image (may contain wildcards).

  • owners – Owner account IDs or aliases. Default: - All owners

  • user_data – Custom userdata for this image. Default: - Empty user data appropriate for the platform type

  • windows – Look for Windows images. Default: false

Methods

get_image(scope)

Return the image to use in the given context.

Parameters

scope (Construct) –

Return type

MachineImageConfig