Class GenericWindowsImage
Construct a Windows machine image from an AMI map.
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(IDictionary<string, string>, IGenericWindowsImageProps?) | Construct a Windows machine image from an AMI map. |
Methods
| GetImage(Construct) | Return the image to use in the given context. |
Constructors
GenericWindowsImage(IDictionary<string, string>, IGenericWindowsImageProps?)
Construct a Windows machine image from an AMI map.
public GenericWindowsImage(IDictionary<string, string> amiMap, IGenericWindowsImageProps? props = null)
Parameters
- amiMap IDictionary<string, string>
- props IGenericWindowsImageProps
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
});
Methods
GetImage(Construct)
Return the image to use in the given context.
public virtual IMachineImageConfig GetImage(Construct scope)
Parameters
- scope Construct
Returns
Remarks
Allows you to create a generic Windows EC2 , manually specify an AMI map.
ExampleMetadata: fixture=_generated