Class LaunchTemplateRequireImdsv2Aspect
Aspect that applies IMDS configuration on EC2 Launch Template constructs.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LaunchTemplateRequireImdsv2Aspect : DeputyBase, IAspect
Syntax (vb)
Public Class LaunchTemplateRequireImdsv2Aspect
Inherits DeputyBase
Implements IAspect
Remarks
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;
var launchTemplateRequireImdsv2Aspect = new LaunchTemplateRequireImdsv2Aspect(new LaunchTemplateRequireImdsv2AspectProps {
SuppressWarnings = false
});
Synopsis
Constructors
LaunchTemplateRequireImdsv2Aspect(ILaunchTemplateRequireImdsv2AspectProps) | |
LaunchTemplateRequireImdsv2Aspect(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
LaunchTemplateRequireImdsv2Aspect(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
SuppressWarnings |
Methods
Visit(IConstruct) | All aspects can visit an IConstruct. |
Warn(IConstruct, String) | Adds a warning annotation to a node, unless |
Constructors
LaunchTemplateRequireImdsv2Aspect(ILaunchTemplateRequireImdsv2AspectProps)
public LaunchTemplateRequireImdsv2Aspect(ILaunchTemplateRequireImdsv2AspectProps props = null)
Parameters
LaunchTemplateRequireImdsv2Aspect(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LaunchTemplateRequireImdsv2Aspect(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
LaunchTemplateRequireImdsv2Aspect(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LaunchTemplateRequireImdsv2Aspect(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
SuppressWarnings
protected virtual bool SuppressWarnings { get; }
Property Value
System.Boolean
Methods
Visit(IConstruct)
All aspects can visit an IConstruct.
public virtual void Visit(IConstruct node)
Parameters
- node Constructs.IConstruct
Warn(IConstruct, String)
Adds a warning annotation to a node, unless suppressWarnings
is true.
protected virtual void Warn(IConstruct node, string message)
Parameters
- node Constructs.IConstruct
The scope to add the warning to.
- message System.String
The warning message.