Class InstanceRequireImdsv2Aspect.Builder

java.lang.Object
software.amazon.awscdk.services.ec2.InstanceRequireImdsv2Aspect.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<InstanceRequireImdsv2Aspect>
Enclosing class:
InstanceRequireImdsv2Aspect

@Stability(Stable) public static final class InstanceRequireImdsv2Aspect.Builder extends Object implements software.amazon.jsii.Builder<InstanceRequireImdsv2Aspect>
A fluent builder for InstanceRequireImdsv2Aspect.
  • Method Details

    • create

      @Stability(Stable) public static InstanceRequireImdsv2Aspect.Builder create()
      Returns:
      a new instance of InstanceRequireImdsv2Aspect.Builder.
    • suppressLaunchTemplateWarning

      @Stability(Stable) public InstanceRequireImdsv2Aspect.Builder suppressLaunchTemplateWarning(Boolean suppressLaunchTemplateWarning)
      Whether warnings that would be raised when an Instance is associated with an existing Launch Template should be suppressed or not.

      You can set this to true if LaunchTemplateImdsAspect is being used alongside this Aspect to suppress false-positive warnings because any Launch Templates associated with Instances will still be covered.

      Default: - false

      Parameters:
      suppressLaunchTemplateWarning - Whether warnings that would be raised when an Instance is associated with an existing Launch Template should be suppressed or not. This parameter is required.
      Returns:
      this
    • suppressWarnings

      @Stability(Stable) public InstanceRequireImdsv2Aspect.Builder suppressWarnings(Boolean suppressWarnings)
      Whether warning annotations from this Aspect should be suppressed or not.

      Default: - false

      Parameters:
      suppressWarnings - Whether warning annotations from this Aspect should be suppressed or not. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public InstanceRequireImdsv2Aspect build()
      Specified by:
      build in interface software.amazon.jsii.Builder<InstanceRequireImdsv2Aspect>
      Returns:
      a newly built instance of InstanceRequireImdsv2Aspect.