Class GenericWindowsImage
Construct a Windows machine image from an AMI map.
Inheritance
System.Object
GenericWindowsImage
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class GenericWindowsImage : DeputyBase, IMachineImage
Syntax (vb)
Public Class GenericWindowsImage
Inherits DeputyBase
Implements IMachineImage
Remarks
Allows you to create a generic Windows EC2 , manually specify an AMI map.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
UserData userData;
var genericWindowsImage = new GenericWindowsImage(new Dictionary<string, string> {
{ "amiMapKey", "amiMap" }
}, new GenericWindowsImageProps {
UserData = userData
});
Synopsis
Constructors
GenericWindowsImage(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
GenericWindowsImage(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
GenericWindowsImage(IDictionary<String, String>, IGenericWindowsImageProps) |
Methods
GetImage(Construct) | Return the image to use in the given context. |
Constructors
GenericWindowsImage(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected GenericWindowsImage(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
GenericWindowsImage(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected GenericWindowsImage(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
GenericWindowsImage(IDictionary<String, String>, IGenericWindowsImageProps)
public GenericWindowsImage(IDictionary<string, string> amiMap, IGenericWindowsImageProps props = null)
Parameters
- amiMap System.Collections.Generic.IDictionary<System.String, System.String>
- props IGenericWindowsImageProps
Methods
GetImage(Construct)
Return the image to use in the given context.
public virtual IMachineImageConfig GetImage(Construct scope)
Parameters
- scope Constructs.Construct
Returns