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

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

Introduction

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

Prototype


public String getServiceNamespace() 

Source Link

Document

The namespace of the AWS service that provides the resource or custom-resource for a resource provided by your own application or service.

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());
}