Example usage for com.amazonaws.services.applicationautoscaling.model ScalingPolicy getResourceId

List of usage examples for com.amazonaws.services.applicationautoscaling.model ScalingPolicy getResourceId

Introduction

In this page you can find the example usage for com.amazonaws.services.applicationautoscaling.model ScalingPolicy getResourceId.

Prototype


public String getResourceId() 

Source Link

Document

The identifier of the resource associated with the scaling policy.

Usage

From source file:com.netflix.spinnaker.clouddriver.ecs.services.EcsCloudMetricService.java

License:Apache License

private PutScalingPolicyRequest buildPutScalingPolicyRequest(ScalingPolicy policy) {
    return new PutScalingPolicyRequest().withPolicyName(policy.getPolicyName())
            .withServiceNamespace(policy.getServiceNamespace()).withPolicyType(policy.getPolicyType())
            .withResourceId(policy.getResourceId()).withScalableDimension(policy.getScalableDimension())
            .withStepScalingPolicyConfiguration(policy.getStepScalingPolicyConfiguration())
            .withTargetTrackingScalingPolicyConfiguration(policy.getTargetTrackingScalingPolicyConfiguration());
}