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 Summary
Modifier and TypeMethodDescriptionapplicationSource
(IResolvable applicationSource) A CloudFormation stack or a set of tags.applicationSource
(CfnScalingPlan.ApplicationSourceProperty applicationSource) A CloudFormation stack or a set of tags.build()
static CfnScalingPlan.Builder
scalingInstructions
(List<? extends Object> scalingInstructions) The scaling instructions.scalingInstructions
(IResolvable scalingInstructions) The scaling instructions.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnScalingPlan>
- Returns:
- a newly built instance of
CfnScalingPlan
.
-