@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:05.167Z") @Stability(value=Stable) public class CfnScalingPolicy 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.autoscaling.*;
CfnScalingPolicy cfnScalingPolicy = CfnScalingPolicy.Builder.create(this, "MyCfnScalingPolicy")
.autoScalingGroupName("autoScalingGroupName")
// the properties below are optional
.adjustmentType("adjustmentType")
.cooldown("cooldown")
.estimatedInstanceWarmup(123)
.metricAggregationType("metricAggregationType")
.minAdjustmentMagnitude(123)
.policyType("policyType")
.predictiveScalingConfiguration(PredictiveScalingConfigurationProperty.builder()
.metricSpecifications(List.of(PredictiveScalingMetricSpecificationProperty.builder()
.targetValue(123)
// the properties below are optional
.predefinedLoadMetricSpecification(PredictiveScalingPredefinedLoadMetricProperty.builder()
.predefinedMetricType("predefinedMetricType")
// the properties below are optional
.resourceLabel("resourceLabel")
.build())
.predefinedMetricPairSpecification(PredictiveScalingPredefinedMetricPairProperty.builder()
.predefinedMetricType("predefinedMetricType")
// the properties below are optional
.resourceLabel("resourceLabel")
.build())
.predefinedScalingMetricSpecification(PredictiveScalingPredefinedScalingMetricProperty.builder()
.predefinedMetricType("predefinedMetricType")
// the properties below are optional
.resourceLabel("resourceLabel")
.build())
.build()))
// the properties below are optional
.maxCapacityBreachBehavior("maxCapacityBreachBehavior")
.maxCapacityBuffer(123)
.mode("mode")
.schedulingBufferTime(123)
.build())
.scalingAdjustment(123)
.stepAdjustments(List.of(StepAdjustmentProperty.builder()
.scalingAdjustment(123)
// the properties below are optional
.metricIntervalLowerBound(123)
.metricIntervalUpperBound(123)
.build()))
.targetTrackingConfiguration(TargetTrackingConfigurationProperty.builder()
.targetValue(123)
// the properties below are optional
.customizedMetricSpecification(CustomizedMetricSpecificationProperty.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)
.predefinedMetricSpecification(PredefinedMetricSpecificationProperty.builder()
.predefinedMetricType("predefinedMetricType")
// the properties below are optional
.resourceLabel("resourceLabel")
.build())
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnScalingPolicy.Builder
A fluent builder for
CfnScalingPolicy. |
static interface |
CfnScalingPolicy.CustomizedMetricSpecificationProperty
Example:
|
static interface |
CfnScalingPolicy.MetricDimensionProperty
Example:
|
static interface |
CfnScalingPolicy.PredefinedMetricSpecificationProperty
Example:
|
static interface |
CfnScalingPolicy.PredictiveScalingConfigurationProperty
Example:
|
static interface |
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty
Example:
|
static interface |
CfnScalingPolicy.PredictiveScalingPredefinedLoadMetricProperty
Example:
|
static interface |
CfnScalingPolicy.PredictiveScalingPredefinedMetricPairProperty
Example:
|
static interface |
CfnScalingPolicy.PredictiveScalingPredefinedScalingMetricProperty
Example:
|
static interface |
CfnScalingPolicy.StepAdjustmentProperty
Example:
|
static interface |
CfnScalingPolicy.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 |
|---|---|
|
CfnScalingPolicy(software.constructs.Construct scope,
String id,
CfnScalingPolicyProps props)
Create a new `AWS::AutoScaling::ScalingPolicy`.
|
protected |
CfnScalingPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnScalingPolicy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAdjustmentType()
`AWS::AutoScaling::ScalingPolicy.AdjustmentType`.
|
String |
getAutoScalingGroupName()
`AWS::AutoScaling::ScalingPolicy.AutoScalingGroupName`.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getCooldown()
`AWS::AutoScaling::ScalingPolicy.Cooldown`.
|
Number |
getEstimatedInstanceWarmup()
`AWS::AutoScaling::ScalingPolicy.EstimatedInstanceWarmup`.
|
String |
getMetricAggregationType()
`AWS::AutoScaling::ScalingPolicy.MetricAggregationType`.
|
Number |
getMinAdjustmentMagnitude()
`AWS::AutoScaling::ScalingPolicy.MinAdjustmentMagnitude`.
|
String |
getPolicyType()
`AWS::AutoScaling::ScalingPolicy.PolicyType`.
|
Object |
getPredictiveScalingConfiguration()
`AWS::AutoScaling::ScalingPolicy.PredictiveScalingConfiguration`.
|
Number |
getScalingAdjustment()
`AWS::AutoScaling::ScalingPolicy.ScalingAdjustment`.
|
Object |
getStepAdjustments()
`AWS::AutoScaling::ScalingPolicy.StepAdjustments`.
|
Object |
getTargetTrackingConfiguration()
`AWS::AutoScaling::ScalingPolicy.TargetTrackingConfiguration`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAdjustmentType(String value)
`AWS::AutoScaling::ScalingPolicy.AdjustmentType`.
|
void |
setAutoScalingGroupName(String value)
`AWS::AutoScaling::ScalingPolicy.AutoScalingGroupName`.
|
void |
setCooldown(String value)
`AWS::AutoScaling::ScalingPolicy.Cooldown`.
|
void |
setEstimatedInstanceWarmup(Number value)
`AWS::AutoScaling::ScalingPolicy.EstimatedInstanceWarmup`.
|
void |
setMetricAggregationType(String value)
`AWS::AutoScaling::ScalingPolicy.MetricAggregationType`.
|
void |
setMinAdjustmentMagnitude(Number value)
`AWS::AutoScaling::ScalingPolicy.MinAdjustmentMagnitude`.
|
void |
setPolicyType(String value)
`AWS::AutoScaling::ScalingPolicy.PolicyType`.
|
void |
setPredictiveScalingConfiguration(CfnScalingPolicy.PredictiveScalingConfigurationProperty value)
`AWS::AutoScaling::ScalingPolicy.PredictiveScalingConfiguration`.
|
void |
setPredictiveScalingConfiguration(IResolvable value)
`AWS::AutoScaling::ScalingPolicy.PredictiveScalingConfiguration`.
|
void |
setScalingAdjustment(Number value)
`AWS::AutoScaling::ScalingPolicy.ScalingAdjustment`.
|
void |
setStepAdjustments(IResolvable value)
`AWS::AutoScaling::ScalingPolicy.StepAdjustments`.
|
void |
setStepAdjustments(List<Object> value)
`AWS::AutoScaling::ScalingPolicy.StepAdjustments`.
|
void |
setTargetTrackingConfiguration(CfnScalingPolicy.TargetTrackingConfigurationProperty value)
`AWS::AutoScaling::ScalingPolicy.TargetTrackingConfiguration`.
|
void |
setTargetTrackingConfiguration(IResolvable value)
`AWS::AutoScaling::ScalingPolicy.TargetTrackingConfiguration`.
|
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 CfnScalingPolicy(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnScalingPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnScalingPolicy(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnScalingPolicyProps 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) @Nullable public String getAdjustmentType()
@Stability(value=Stable)
public void setAdjustmentType(@Nullable
String value)
@Stability(value=Stable) @NotNull public String getAutoScalingGroupName()
@Stability(value=Stable)
public void setAutoScalingGroupName(@NotNull
String value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getCooldown()
@Stability(value=Stable)
public void setCooldown(@Nullable
String value)
@Stability(value=Stable) @Nullable public Number getEstimatedInstanceWarmup()
@Stability(value=Stable)
public void setEstimatedInstanceWarmup(@Nullable
Number value)
@Stability(value=Stable) @Nullable public String getMetricAggregationType()
@Stability(value=Stable)
public void setMetricAggregationType(@Nullable
String value)
@Stability(value=Stable) @Nullable public Number getMinAdjustmentMagnitude()
@Stability(value=Stable)
public void setMinAdjustmentMagnitude(@Nullable
Number value)
@Stability(value=Stable) @Nullable public String getPolicyType()
@Stability(value=Stable)
public void setPolicyType(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getPredictiveScalingConfiguration()
@Stability(value=Stable)
public void setPredictiveScalingConfiguration(@Nullable
CfnScalingPolicy.PredictiveScalingConfigurationProperty value)
@Stability(value=Stable)
public void setPredictiveScalingConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Number getScalingAdjustment()
@Stability(value=Stable)
public void setScalingAdjustment(@Nullable
Number value)
@Stability(value=Stable) @Nullable public Object getStepAdjustments()
@Stability(value=Stable)
public void setStepAdjustments(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setStepAdjustments(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getTargetTrackingConfiguration()
@Stability(value=Stable)
public void setTargetTrackingConfiguration(@Nullable
CfnScalingPolicy.TargetTrackingConfigurationProperty value)
@Stability(value=Stable)
public void setTargetTrackingConfiguration(@Nullable
IResolvable value)
Copyright © 2021. All rights reserved.