@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:05.189Z") @Stability(value=Stable) public class CfnScalingPlan extends CfnResource implements IInspectable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.autoscalingplans.*;
CfnScalingPlan cfnScalingPlan = CfnScalingPlan.Builder.create(this, "MyCfnScalingPlan")
.applicationSource(ApplicationSourceProperty.builder()
.cloudFormationStackArn("cloudFormationStackArn")
.tagFilters(List.of(TagFilterProperty.builder()
.key("key")
// the properties below are optional
.values(List.of("values"))
.build()))
.build())
.scalingInstructions(List.of(ScalingInstructionProperty.builder()
.maxCapacity(123)
.minCapacity(123)
.resourceId("resourceId")
.scalableDimension("scalableDimension")
.serviceNamespace("serviceNamespace")
.targetTrackingConfigurations(List.of(TargetTrackingConfigurationProperty.builder()
.targetValue(123)
// the properties below are optional
.customizedScalingMetricSpecification(CustomizedScalingMetricSpecificationProperty.builder()
.metricName("metricName")
.namespace("namespace")
.statistic("statistic")
// the properties below are optional
.dimensions(List.of(MetricDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.unit("unit")
.build())
.disableScaleIn(false)
.estimatedInstanceWarmup(123)
.predefinedScalingMetricSpecification(PredefinedScalingMetricSpecificationProperty.builder()
.predefinedScalingMetricType("predefinedScalingMetricType")
// the properties below are optional
.resourceLabel("resourceLabel")
.build())
.scaleInCooldown(123)
.scaleOutCooldown(123)
.build()))
// the properties below are optional
.customizedLoadMetricSpecification(CustomizedLoadMetricSpecificationProperty.builder()
.metricName("metricName")
.namespace("namespace")
.statistic("statistic")
// the properties below are optional
.dimensions(List.of(MetricDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.unit("unit")
.build())
.disableDynamicScaling(false)
.predefinedLoadMetricSpecification(PredefinedLoadMetricSpecificationProperty.builder()
.predefinedLoadMetricType("predefinedLoadMetricType")
// the properties below are optional
.resourceLabel("resourceLabel")
.build())
.predictiveScalingMaxCapacityBehavior("predictiveScalingMaxCapacityBehavior")
.predictiveScalingMaxCapacityBuffer(123)
.predictiveScalingMode("predictiveScalingMode")
.scalingPolicyUpdateBehavior("scalingPolicyUpdateBehavior")
.scheduledActionBufferTime(123)
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnScalingPlan.ApplicationSourceProperty
Example:
|
static class |
CfnScalingPlan.Builder
A fluent builder for
CfnScalingPlan. |
static interface |
CfnScalingPlan.CustomizedLoadMetricSpecificationProperty
Example:
|
static interface |
CfnScalingPlan.CustomizedScalingMetricSpecificationProperty
Example:
|
static interface |
CfnScalingPlan.MetricDimensionProperty
Example:
|
static interface |
CfnScalingPlan.PredefinedLoadMetricSpecificationProperty
Example:
|
static interface |
CfnScalingPlan.PredefinedScalingMetricSpecificationProperty
Example:
|
static interface |
CfnScalingPlan.ScalingInstructionProperty
Example:
|
static interface |
CfnScalingPlan.TagFilterProperty
Example:
|
static interface |
CfnScalingPlan.TargetTrackingConfigurationProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnScalingPlan(software.constructs.Construct scope,
String id,
CfnScalingPlanProps props)
Create a new `AWS::AutoScalingPlans::ScalingPlan`.
|
protected |
CfnScalingPlan(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnScalingPlan(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getApplicationSource()
`AWS::AutoScalingPlans::ScalingPlan.ApplicationSource`.
|
String |
getAttrScalingPlanName() |
String |
getAttrScalingPlanVersion() |
protected Map<String,Object> |
getCfnProperties() |
Object |
getScalingInstructions()
`AWS::AutoScalingPlans::ScalingPlan.ScalingInstructions`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setApplicationSource(CfnScalingPlan.ApplicationSourceProperty value)
`AWS::AutoScalingPlans::ScalingPlan.ApplicationSource`.
|
void |
setApplicationSource(IResolvable value)
`AWS::AutoScalingPlans::ScalingPlan.ApplicationSource`.
|
void |
setScalingInstructions(IResolvable value)
`AWS::AutoScalingPlans::ScalingPlan.ScalingInstructions`.
|
void |
setScalingInstructions(List<Object> value)
`AWS::AutoScalingPlans::ScalingPlan.ScalingInstructions`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnScalingPlan(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnScalingPlan(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnScalingPlan(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnScalingPlanProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public Object getApplicationSource()
@Stability(value=Stable)
public void setApplicationSource(@NotNull
CfnScalingPlan.ApplicationSourceProperty value)
@Stability(value=Stable)
public void setApplicationSource(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getAttrScalingPlanName()
@Stability(value=Stable) @NotNull public String getAttrScalingPlanVersion()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public Object getScalingInstructions()
@Stability(value=Stable)
public void setScalingInstructions(@NotNull
IResolvable value)
Copyright © 2021. All rights reserved.