Class PolicyState.Builder
- java.lang.Object
-
- com.pulumi.aws.appautoscaling.inputs.PolicyState.Builder
-
- Enclosing class:
- PolicyState
public static final class PolicyState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(PolicyState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyState.Builder
alarmArns(com.pulumi.core.Output<java.util.List<java.lang.String>> alarmArns)
PolicyState.Builder
alarmArns(java.lang.String... alarmArns)
PolicyState.Builder
alarmArns(java.util.List<java.lang.String> alarmArns)
PolicyState.Builder
arn(com.pulumi.core.Output<java.lang.String> arn)
PolicyState.Builder
arn(java.lang.String arn)
PolicyState
build()
PolicyState.Builder
name(com.pulumi.core.Output<java.lang.String> name)
PolicyState.Builder
name(java.lang.String name)
PolicyState.Builder
policyType(com.pulumi.core.Output<java.lang.String> policyType)
PolicyState.Builder
policyType(java.lang.String policyType)
PolicyState.Builder
resourceId(com.pulumi.core.Output<java.lang.String> resourceId)
PolicyState.Builder
resourceId(java.lang.String resourceId)
PolicyState.Builder
scalableDimension(com.pulumi.core.Output<java.lang.String> scalableDimension)
PolicyState.Builder
scalableDimension(java.lang.String scalableDimension)
PolicyState.Builder
serviceNamespace(com.pulumi.core.Output<java.lang.String> serviceNamespace)
PolicyState.Builder
serviceNamespace(java.lang.String serviceNamespace)
PolicyState.Builder
stepScalingPolicyConfiguration(PolicyStepScalingPolicyConfigurationArgs stepScalingPolicyConfiguration)
PolicyState.Builder
stepScalingPolicyConfiguration(com.pulumi.core.Output<PolicyStepScalingPolicyConfigurationArgs> stepScalingPolicyConfiguration)
PolicyState.Builder
targetTrackingScalingPolicyConfiguration(PolicyTargetTrackingScalingPolicyConfigurationArgs targetTrackingScalingPolicyConfiguration)
PolicyState.Builder
targetTrackingScalingPolicyConfiguration(com.pulumi.core.Output<PolicyTargetTrackingScalingPolicyConfigurationArgs> targetTrackingScalingPolicyConfiguration)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(PolicyState defaults)
-
-
Method Detail
-
alarmArns
public PolicyState.Builder alarmArns(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> alarmArns)
- Parameters:
alarmArns
- List of CloudWatch alarm ARNs associated with the scaling policy.- Returns:
- builder
-
alarmArns
public PolicyState.Builder alarmArns(java.util.List<java.lang.String> alarmArns)
- Parameters:
alarmArns
- List of CloudWatch alarm ARNs associated with the scaling policy.- Returns:
- builder
-
alarmArns
public PolicyState.Builder alarmArns(java.lang.String... alarmArns)
- Parameters:
alarmArns
- List of CloudWatch alarm ARNs associated with the scaling policy.- Returns:
- builder
-
arn
public PolicyState.Builder arn(@Nullable com.pulumi.core.Output<java.lang.String> arn)
- Parameters:
arn
- ARN assigned by AWS to the scaling policy.- Returns:
- builder
-
arn
public PolicyState.Builder arn(java.lang.String arn)
- Parameters:
arn
- ARN assigned by AWS to the scaling policy.- Returns:
- builder
-
name
public PolicyState.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- Name of the policy. Must be between 1 and 255 characters in length.- Returns:
- builder
-
name
public PolicyState.Builder name(java.lang.String name)
- Parameters:
name
- Name of the policy. Must be between 1 and 255 characters in length.- Returns:
- builder
-
policyType
public PolicyState.Builder policyType(@Nullable com.pulumi.core.Output<java.lang.String> policyType)
- Parameters:
policyType
- Policy type. Valid values are `StepScaling` and `TargetTrackingScaling`. Defaults to `StepScaling`. Certain services only support only one policy type. For more information see the [Target Tracking Scaling Policies](https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html) and [Step Scaling Policies](https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html) documentation.- Returns:
- builder
-
policyType
public PolicyState.Builder policyType(java.lang.String policyType)
- Parameters:
policyType
- Policy type. Valid values are `StepScaling` and `TargetTrackingScaling`. Defaults to `StepScaling`. Certain services only support only one policy type. For more information see the [Target Tracking Scaling Policies](https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html) and [Step Scaling Policies](https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html) documentation.- Returns:
- builder
-
resourceId
public PolicyState.Builder resourceId(@Nullable com.pulumi.core.Output<java.lang.String> resourceId)
- Parameters:
resourceId
- Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the `ResourceId` parameter at: [AWS Application Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html)- Returns:
- builder
-
resourceId
public PolicyState.Builder resourceId(java.lang.String resourceId)
- Parameters:
resourceId
- Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the `ResourceId` parameter at: [AWS Application Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html)- Returns:
- builder
-
scalableDimension
public PolicyState.Builder scalableDimension(@Nullable com.pulumi.core.Output<java.lang.String> scalableDimension)
- Parameters:
scalableDimension
- Scalable dimension of the scalable target. Documentation can be found in the `ScalableDimension` parameter at: [AWS Application Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html)- Returns:
- builder
-
scalableDimension
public PolicyState.Builder scalableDimension(java.lang.String scalableDimension)
- Parameters:
scalableDimension
- Scalable dimension of the scalable target. Documentation can be found in the `ScalableDimension` parameter at: [AWS Application Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html)- Returns:
- builder
-
serviceNamespace
public PolicyState.Builder serviceNamespace(@Nullable com.pulumi.core.Output<java.lang.String> serviceNamespace)
- Parameters:
serviceNamespace
- AWS service namespace of the scalable target. Documentation can be found in the `ServiceNamespace` parameter at: [AWS Application Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html)- Returns:
- builder
-
serviceNamespace
public PolicyState.Builder serviceNamespace(java.lang.String serviceNamespace)
- Parameters:
serviceNamespace
- AWS service namespace of the scalable target. Documentation can be found in the `ServiceNamespace` parameter at: [AWS Application Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html)- Returns:
- builder
-
stepScalingPolicyConfiguration
public PolicyState.Builder stepScalingPolicyConfiguration(@Nullable com.pulumi.core.Output<PolicyStepScalingPolicyConfigurationArgs> stepScalingPolicyConfiguration)
- Parameters:
stepScalingPolicyConfiguration
- Step scaling policy configuration, requires `policy_type = "StepScaling"` (default). See supported fields below.- Returns:
- builder
-
stepScalingPolicyConfiguration
public PolicyState.Builder stepScalingPolicyConfiguration(PolicyStepScalingPolicyConfigurationArgs stepScalingPolicyConfiguration)
- Parameters:
stepScalingPolicyConfiguration
- Step scaling policy configuration, requires `policy_type = "StepScaling"` (default). See supported fields below.- Returns:
- builder
-
targetTrackingScalingPolicyConfiguration
public PolicyState.Builder targetTrackingScalingPolicyConfiguration(@Nullable com.pulumi.core.Output<PolicyTargetTrackingScalingPolicyConfigurationArgs> targetTrackingScalingPolicyConfiguration)
- Parameters:
targetTrackingScalingPolicyConfiguration
- Target tracking policy, requires `policy_type = "TargetTrackingScaling"`. See supported fields below.- Returns:
- builder
-
targetTrackingScalingPolicyConfiguration
public PolicyState.Builder targetTrackingScalingPolicyConfiguration(PolicyTargetTrackingScalingPolicyConfigurationArgs targetTrackingScalingPolicyConfiguration)
- Parameters:
targetTrackingScalingPolicyConfiguration
- Target tracking policy, requires `policy_type = "TargetTrackingScaling"`. See supported fields below.- Returns:
- builder
-
build
public PolicyState build()
-
-