Class GenericLinuxImage
Construct a Linux machine image from an AMI map.
Inheritance
System.Object
GenericLinuxImage
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class GenericLinuxImage : DeputyBase, IMachineImage
Syntax (vb)
Public Class GenericLinuxImage
Inherits DeputyBase
Implements IMachineImage
Remarks
Linux images IDs are not published to SSM parameter store yet, so you'll have to manually specify an AMI map.
ExampleMetadata: infused
Examples
NatProvider.Instance(new NatInstanceProps {
InstanceType = new InstanceType("t3.micro"),
MachineImage = new GenericLinuxImage(new Dictionary<string, string> {
{ "us-east-2", "ami-0f9c61b5a562a16af" }
})
});
Synopsis
Constructors
GenericLinuxImage(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
GenericLinuxImage(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
GenericLinuxImage(IDictionary<String, String>, IGenericLinuxImageProps) |
Methods
GetImage(Construct) | Return the image to use in the given context. |
Constructors
GenericLinuxImage(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected GenericLinuxImage(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
GenericLinuxImage(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected GenericLinuxImage(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
GenericLinuxImage(IDictionary<String, String>, IGenericLinuxImageProps)
public GenericLinuxImage(IDictionary<string, string> amiMap, IGenericLinuxImageProps props = null)
Parameters
- amiMap System.Collections.Generic.IDictionary<System.String, System.String>
- props IGenericLinuxImageProps
Methods
GetImage(Construct)
Return the image to use in the given context.
public virtual IMachineImageConfig GetImage(Construct scope)
Parameters
- scope Construct
Returns