@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ScalingInstruction extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the scaling configuration for a scalable resource.
| Constructor and Description |
|---|
ScalingInstruction() |
| Modifier and Type | Method and Description |
|---|---|
ScalingInstruction |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaxCapacity()
The maximum value to scale to in response to a scale out event.
|
Integer |
getMinCapacity()
The minimum value to scale to in response to a scale in event.
|
String |
getResourceId()
The ID of the resource.
|
String |
getScalableDimension()
The scalable dimension associated with the resource.
|
String |
getServiceNamespace()
The namespace of the AWS service.
|
List<TargetTrackingConfiguration> |
getTargetTrackingConfigurations()
The target tracking scaling policies (up to 10).
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setMaxCapacity(Integer maxCapacity)
The maximum value to scale to in response to a scale out event.
|
void |
setMinCapacity(Integer minCapacity)
The minimum value to scale to in response to a scale in event.
|
void |
setResourceId(String resourceId)
The ID of the resource.
|
void |
setScalableDimension(String scalableDimension)
The scalable dimension associated with the resource.
|
void |
setServiceNamespace(String serviceNamespace)
The namespace of the AWS service.
|
void |
setTargetTrackingConfigurations(Collection<TargetTrackingConfiguration> targetTrackingConfigurations)
The target tracking scaling policies (up to 10).
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ScalingInstruction |
withMaxCapacity(Integer maxCapacity)
The maximum value to scale to in response to a scale out event.
|
ScalingInstruction |
withMinCapacity(Integer minCapacity)
The minimum value to scale to in response to a scale in event.
|
ScalingInstruction |
withResourceId(String resourceId)
The ID of the resource.
|
ScalingInstruction |
withScalableDimension(ScalableDimension scalableDimension)
The scalable dimension associated with the resource.
|
ScalingInstruction |
withScalableDimension(String scalableDimension)
The scalable dimension associated with the resource.
|
ScalingInstruction |
withServiceNamespace(ServiceNamespace serviceNamespace)
The namespace of the AWS service.
|
ScalingInstruction |
withServiceNamespace(String serviceNamespace)
The namespace of the AWS service.
|
ScalingInstruction |
withTargetTrackingConfigurations(Collection<TargetTrackingConfiguration> targetTrackingConfigurations)
The target tracking scaling policies (up to 10).
|
ScalingInstruction |
withTargetTrackingConfigurations(TargetTrackingConfiguration... targetTrackingConfigurations)
The target tracking scaling policies (up to 10).
|
public void setServiceNamespace(String serviceNamespace)
The namespace of the AWS service.
serviceNamespace - The namespace of the AWS service.ServiceNamespacepublic String getServiceNamespace()
The namespace of the AWS service.
ServiceNamespacepublic ScalingInstruction withServiceNamespace(String serviceNamespace)
The namespace of the AWS service.
serviceNamespace - The namespace of the AWS service.ServiceNamespacepublic ScalingInstruction withServiceNamespace(ServiceNamespace serviceNamespace)
The namespace of the AWS service.
serviceNamespace - The namespace of the AWS service.ServiceNamespacepublic void setResourceId(String resourceId)
The ID of the resource. This string consists of the resource type and unique identifier.
Auto Scaling group - The resource type is autoScalingGroup and the unique identifier is the name of
the Auto Scaling group. Example: autoScalingGroup/my-asg.
ECS service - The resource type is service and the unique identifier is the cluster name and service
name. Example: service/default/sample-webapp.
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot
fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
DynamoDB table - The resource type is table and the unique identifier is the resource ID. Example:
table/my-table.
DynamoDB global secondary index - The resource type is index and the unique identifier is the
resource ID. Example: table/my-table/index/my-table-index.
Aurora DB cluster - The resource type is cluster and the unique identifier is the cluster name.
Example: cluster:my-db-cluster.
resourceId - The ID of the resource. This string consists of the resource type and unique identifier.
Auto Scaling group - The resource type is autoScalingGroup and the unique identifier is the
name of the Auto Scaling group. Example: autoScalingGroup/my-asg.
ECS service - The resource type is service and the unique identifier is the cluster name and
service name. Example: service/default/sample-webapp.
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the
Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
DynamoDB table - The resource type is table and the unique identifier is the resource ID.
Example: table/my-table.
DynamoDB global secondary index - The resource type is index and the unique identifier is the
resource ID. Example: table/my-table/index/my-table-index.
Aurora DB cluster - The resource type is cluster and the unique identifier is the cluster
name. Example: cluster:my-db-cluster.
public String getResourceId()
The ID of the resource. This string consists of the resource type and unique identifier.
Auto Scaling group - The resource type is autoScalingGroup and the unique identifier is the name of
the Auto Scaling group. Example: autoScalingGroup/my-asg.
ECS service - The resource type is service and the unique identifier is the cluster name and service
name. Example: service/default/sample-webapp.
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot
fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
DynamoDB table - The resource type is table and the unique identifier is the resource ID. Example:
table/my-table.
DynamoDB global secondary index - The resource type is index and the unique identifier is the
resource ID. Example: table/my-table/index/my-table-index.
Aurora DB cluster - The resource type is cluster and the unique identifier is the cluster name.
Example: cluster:my-db-cluster.
Auto Scaling group - The resource type is autoScalingGroup and the unique identifier is the
name of the Auto Scaling group. Example: autoScalingGroup/my-asg.
ECS service - The resource type is service and the unique identifier is the cluster name and
service name. Example: service/default/sample-webapp.
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is
the Spot fleet request ID. Example:
spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
DynamoDB table - The resource type is table and the unique identifier is the resource ID.
Example: table/my-table.
DynamoDB global secondary index - The resource type is index and the unique identifier is
the resource ID. Example: table/my-table/index/my-table-index.
Aurora DB cluster - The resource type is cluster and the unique identifier is the cluster
name. Example: cluster:my-db-cluster.
public ScalingInstruction withResourceId(String resourceId)
The ID of the resource. This string consists of the resource type and unique identifier.
Auto Scaling group - The resource type is autoScalingGroup and the unique identifier is the name of
the Auto Scaling group. Example: autoScalingGroup/my-asg.
ECS service - The resource type is service and the unique identifier is the cluster name and service
name. Example: service/default/sample-webapp.
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot
fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
DynamoDB table - The resource type is table and the unique identifier is the resource ID. Example:
table/my-table.
DynamoDB global secondary index - The resource type is index and the unique identifier is the
resource ID. Example: table/my-table/index/my-table-index.
Aurora DB cluster - The resource type is cluster and the unique identifier is the cluster name.
Example: cluster:my-db-cluster.
resourceId - The ID of the resource. This string consists of the resource type and unique identifier.
Auto Scaling group - The resource type is autoScalingGroup and the unique identifier is the
name of the Auto Scaling group. Example: autoScalingGroup/my-asg.
ECS service - The resource type is service and the unique identifier is the cluster name and
service name. Example: service/default/sample-webapp.
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the
Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
DynamoDB table - The resource type is table and the unique identifier is the resource ID.
Example: table/my-table.
DynamoDB global secondary index - The resource type is index and the unique identifier is the
resource ID. Example: table/my-table/index/my-table-index.
Aurora DB cluster - The resource type is cluster and the unique identifier is the cluster
name. Example: cluster:my-db-cluster.
public void setScalableDimension(String scalableDimension)
The scalable dimension associated with the resource.
autoscaling:autoScalingGroup:DesiredCapacity - The desired capacity of an Auto Scaling group.
ecs:service:DesiredCount - The desired task count of an ECS service.
ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.
dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table.
dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table.
dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global secondary
index.
dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a DynamoDB global secondary
index.
rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster. Available for
Aurora MySQL-compatible edition.
scalableDimension - The scalable dimension associated with the resource.
autoscaling:autoScalingGroup:DesiredCapacity - The desired capacity of an Auto Scaling group.
ecs:service:DesiredCount - The desired task count of an ECS service.
ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.
dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table.
dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table.
dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global
secondary index.
dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a DynamoDB global
secondary index.
rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster.
Available for Aurora MySQL-compatible edition.
ScalableDimensionpublic String getScalableDimension()
The scalable dimension associated with the resource.
autoscaling:autoScalingGroup:DesiredCapacity - The desired capacity of an Auto Scaling group.
ecs:service:DesiredCount - The desired task count of an ECS service.
ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.
dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table.
dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table.
dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global secondary
index.
dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a DynamoDB global secondary
index.
rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster. Available for
Aurora MySQL-compatible edition.
autoscaling:autoScalingGroup:DesiredCapacity - The desired capacity of an Auto Scaling
group.
ecs:service:DesiredCount - The desired task count of an ECS service.
ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.
dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table.
dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table.
dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global
secondary index.
dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a DynamoDB global
secondary index.
rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster.
Available for Aurora MySQL-compatible edition.
ScalableDimensionpublic ScalingInstruction withScalableDimension(String scalableDimension)
The scalable dimension associated with the resource.
autoscaling:autoScalingGroup:DesiredCapacity - The desired capacity of an Auto Scaling group.
ecs:service:DesiredCount - The desired task count of an ECS service.
ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.
dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table.
dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table.
dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global secondary
index.
dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a DynamoDB global secondary
index.
rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster. Available for
Aurora MySQL-compatible edition.
scalableDimension - The scalable dimension associated with the resource.
autoscaling:autoScalingGroup:DesiredCapacity - The desired capacity of an Auto Scaling group.
ecs:service:DesiredCount - The desired task count of an ECS service.
ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.
dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table.
dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table.
dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global
secondary index.
dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a DynamoDB global
secondary index.
rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster.
Available for Aurora MySQL-compatible edition.
ScalableDimensionpublic ScalingInstruction withScalableDimension(ScalableDimension scalableDimension)
The scalable dimension associated with the resource.
autoscaling:autoScalingGroup:DesiredCapacity - The desired capacity of an Auto Scaling group.
ecs:service:DesiredCount - The desired task count of an ECS service.
ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.
dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table.
dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table.
dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global secondary
index.
dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a DynamoDB global secondary
index.
rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster. Available for
Aurora MySQL-compatible edition.
scalableDimension - The scalable dimension associated with the resource.
autoscaling:autoScalingGroup:DesiredCapacity - The desired capacity of an Auto Scaling group.
ecs:service:DesiredCount - The desired task count of an ECS service.
ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.
dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table.
dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table.
dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global
secondary index.
dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a DynamoDB global
secondary index.
rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster.
Available for Aurora MySQL-compatible edition.
ScalableDimensionpublic void setMinCapacity(Integer minCapacity)
The minimum value to scale to in response to a scale in event.
minCapacity - The minimum value to scale to in response to a scale in event.public Integer getMinCapacity()
The minimum value to scale to in response to a scale in event.
public ScalingInstruction withMinCapacity(Integer minCapacity)
The minimum value to scale to in response to a scale in event.
minCapacity - The minimum value to scale to in response to a scale in event.public void setMaxCapacity(Integer maxCapacity)
The maximum value to scale to in response to a scale out event.
maxCapacity - The maximum value to scale to in response to a scale out event.public Integer getMaxCapacity()
The maximum value to scale to in response to a scale out event.
public ScalingInstruction withMaxCapacity(Integer maxCapacity)
The maximum value to scale to in response to a scale out event.
maxCapacity - The maximum value to scale to in response to a scale out event.public List<TargetTrackingConfiguration> getTargetTrackingConfigurations()
The target tracking scaling policies (up to 10).
public void setTargetTrackingConfigurations(Collection<TargetTrackingConfiguration> targetTrackingConfigurations)
The target tracking scaling policies (up to 10).
targetTrackingConfigurations - The target tracking scaling policies (up to 10).public ScalingInstruction withTargetTrackingConfigurations(TargetTrackingConfiguration... targetTrackingConfigurations)
The target tracking scaling policies (up to 10).
NOTE: This method appends the values to the existing list (if any). Use
setTargetTrackingConfigurations(java.util.Collection) or
withTargetTrackingConfigurations(java.util.Collection) if you want to override the existing values.
targetTrackingConfigurations - The target tracking scaling policies (up to 10).public ScalingInstruction withTargetTrackingConfigurations(Collection<TargetTrackingConfiguration> targetTrackingConfigurations)
The target tracking scaling policies (up to 10).
targetTrackingConfigurations - The target tracking scaling policies (up to 10).public String toString()
toString in class ObjectObject.toString()public ScalingInstruction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2018. All rights reserved.