Class CfnScalingPlan.Builder

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

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

    • create

      @Stability(Stable) public static CfnScalingPlan.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnScalingPlan.Builder.
    • applicationSource

      @Stability(Stable) public CfnScalingPlan.Builder applicationSource(CfnScalingPlan.ApplicationSourceProperty applicationSource)
      A CloudFormation stack or a set of tags.

      You can create one scaling plan per application source. The ApplicationSource property must be present to ensure interoperability with the AWS Auto Scaling console.

      Parameters:
      applicationSource - A CloudFormation stack or a set of tags. This parameter is required.
      Returns:
      this
    • applicationSource

      @Stability(Stable) public CfnScalingPlan.Builder applicationSource(IResolvable applicationSource)
      A CloudFormation stack or a set of tags.

      You can create one scaling plan per application source. The ApplicationSource property must be present to ensure interoperability with the AWS Auto Scaling console.

      Parameters:
      applicationSource - A CloudFormation stack or a set of tags. This parameter is required.
      Returns:
      this
    • scalingInstructions

      @Stability(Stable) public CfnScalingPlan.Builder scalingInstructions(IResolvable scalingInstructions)
      The scaling instructions.

      Parameters:
      scalingInstructions - The scaling instructions. This parameter is required.
      Returns:
      this
    • scalingInstructions

      @Stability(Stable) public CfnScalingPlan.Builder scalingInstructions(List<? extends Object> scalingInstructions)
      The scaling instructions.

      Parameters:
      scalingInstructions - The scaling instructions. This parameter is required.
      Returns:
      this
    • build

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