Show / Hide Table of Contents

Class LaunchTemplateRequireImdsv2Aspect

Aspect that applies IMDS configuration on EC2 Launch Template constructs.

Inheritance
object
LaunchTemplateRequireImdsv2Aspect
Implements
IAspect
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

See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-metadataoptions.html

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?)

Aspect that applies IMDS configuration on EC2 Launch Template constructs.

Properties

SuppressWarnings

Aspect that applies IMDS configuration on EC2 Launch Template constructs.

Methods

Visit(IConstruct)

All aspects can visit an IConstruct.

Warn(IConstruct, string)

Adds a warning annotation to a node, unless suppressWarnings is true.

Constructors

LaunchTemplateRequireImdsv2Aspect(ILaunchTemplateRequireImdsv2AspectProps?)

Aspect that applies IMDS configuration on EC2 Launch Template constructs.

public LaunchTemplateRequireImdsv2Aspect(ILaunchTemplateRequireImdsv2AspectProps? props = null)
Parameters
props ILaunchTemplateRequireImdsv2AspectProps
Remarks

See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-metadataoptions.html

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
             });

Properties

SuppressWarnings

Aspect that applies IMDS configuration on EC2 Launch Template constructs.

protected virtual bool SuppressWarnings { get; }
Property Value

bool

Remarks

See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-metadataoptions.html

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
             });

Methods

Visit(IConstruct)

All aspects can visit an IConstruct.

public virtual void Visit(IConstruct node)
Parameters
node IConstruct
Remarks

See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-metadataoptions.html

ExampleMetadata: fixture=_generated

Warn(IConstruct, string)

Adds a warning annotation to a node, unless suppressWarnings is true.

protected virtual void Warn(IConstruct node, string message)
Parameters
node IConstruct

The scope to add the warning to.

message string

The warning message.

Remarks

See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-metadataoptions.html

ExampleMetadata: fixture=_generated

Implements

IAspect
Back to top Generated by DocFX