Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.awsconnector.inputs.CapacityProviderStrategyItemArgs Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.awsconnector.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Definition of CapacityProviderStrategyItem
*
*/
public final class CapacityProviderStrategyItemArgs extends com.pulumi.resources.ResourceArgs {
public static final CapacityProviderStrategyItemArgs Empty = new CapacityProviderStrategyItemArgs();
/**
* The *base* value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a *base* defined. If no value is specified, the default value of ``0`` is used.
*
*/
@Import(name="base")
private @Nullable Output base;
/**
* @return The *base* value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a *base* defined. If no value is specified, the default value of ``0`` is used.
*
*/
public Optional> base() {
return Optional.ofNullable(this.base);
}
/**
* The short name of the capacity provider.
*
*/
@Import(name="capacityProvider")
private @Nullable Output capacityProvider;
/**
* @return The short name of the capacity provider.
*
*/
public Optional> capacityProvider() {
return Optional.ofNullable(this.capacityProvider);
}
/**
* The *weight* value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The ``weight`` value is taken into consideration after the ``base`` value, if defined, is satisfied. If no ``weight`` value is specified, the default value of ``0`` is used. When multiple capacity providers are specified within a capacity provider strategy, at least one of the capacity providers must have a weight value greater than zero and any capacity providers with a weight of ``0`` can't be used to place tasks. If you specify multiple capacity providers in a strategy that all have a weight of ``0``, any ``RunTask`` or ``CreateService`` actions using the capacity provider strategy will fail. An example scenario for using weights is defining a strategy that contains two capacity providers and both have a weight of ``1``, then when the ``base`` is satisfied, the tasks will be split evenly across the two capacity providers. Using that same logic, if you specify a weight of ``1`` for *capacityProviderA* and a weight of ``4`` for *capacityProviderB*, then for every one task that's run using *capacityProviderA*, four tasks would use *capacityProviderB*.
*
*/
@Import(name="weight")
private @Nullable Output weight;
/**
* @return The *weight* value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The ``weight`` value is taken into consideration after the ``base`` value, if defined, is satisfied. If no ``weight`` value is specified, the default value of ``0`` is used. When multiple capacity providers are specified within a capacity provider strategy, at least one of the capacity providers must have a weight value greater than zero and any capacity providers with a weight of ``0`` can't be used to place tasks. If you specify multiple capacity providers in a strategy that all have a weight of ``0``, any ``RunTask`` or ``CreateService`` actions using the capacity provider strategy will fail. An example scenario for using weights is defining a strategy that contains two capacity providers and both have a weight of ``1``, then when the ``base`` is satisfied, the tasks will be split evenly across the two capacity providers. Using that same logic, if you specify a weight of ``1`` for *capacityProviderA* and a weight of ``4`` for *capacityProviderB*, then for every one task that's run using *capacityProviderA*, four tasks would use *capacityProviderB*.
*
*/
public Optional> weight() {
return Optional.ofNullable(this.weight);
}
private CapacityProviderStrategyItemArgs() {}
private CapacityProviderStrategyItemArgs(CapacityProviderStrategyItemArgs $) {
this.base = $.base;
this.capacityProvider = $.capacityProvider;
this.weight = $.weight;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CapacityProviderStrategyItemArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private CapacityProviderStrategyItemArgs $;
public Builder() {
$ = new CapacityProviderStrategyItemArgs();
}
public Builder(CapacityProviderStrategyItemArgs defaults) {
$ = new CapacityProviderStrategyItemArgs(Objects.requireNonNull(defaults));
}
/**
* @param base The *base* value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a *base* defined. If no value is specified, the default value of ``0`` is used.
*
* @return builder
*
*/
public Builder base(@Nullable Output base) {
$.base = base;
return this;
}
/**
* @param base The *base* value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a *base* defined. If no value is specified, the default value of ``0`` is used.
*
* @return builder
*
*/
public Builder base(Integer base) {
return base(Output.of(base));
}
/**
* @param capacityProvider The short name of the capacity provider.
*
* @return builder
*
*/
public Builder capacityProvider(@Nullable Output capacityProvider) {
$.capacityProvider = capacityProvider;
return this;
}
/**
* @param capacityProvider The short name of the capacity provider.
*
* @return builder
*
*/
public Builder capacityProvider(String capacityProvider) {
return capacityProvider(Output.of(capacityProvider));
}
/**
* @param weight The *weight* value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The ``weight`` value is taken into consideration after the ``base`` value, if defined, is satisfied. If no ``weight`` value is specified, the default value of ``0`` is used. When multiple capacity providers are specified within a capacity provider strategy, at least one of the capacity providers must have a weight value greater than zero and any capacity providers with a weight of ``0`` can't be used to place tasks. If you specify multiple capacity providers in a strategy that all have a weight of ``0``, any ``RunTask`` or ``CreateService`` actions using the capacity provider strategy will fail. An example scenario for using weights is defining a strategy that contains two capacity providers and both have a weight of ``1``, then when the ``base`` is satisfied, the tasks will be split evenly across the two capacity providers. Using that same logic, if you specify a weight of ``1`` for *capacityProviderA* and a weight of ``4`` for *capacityProviderB*, then for every one task that's run using *capacityProviderA*, four tasks would use *capacityProviderB*.
*
* @return builder
*
*/
public Builder weight(@Nullable Output weight) {
$.weight = weight;
return this;
}
/**
* @param weight The *weight* value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The ``weight`` value is taken into consideration after the ``base`` value, if defined, is satisfied. If no ``weight`` value is specified, the default value of ``0`` is used. When multiple capacity providers are specified within a capacity provider strategy, at least one of the capacity providers must have a weight value greater than zero and any capacity providers with a weight of ``0`` can't be used to place tasks. If you specify multiple capacity providers in a strategy that all have a weight of ``0``, any ``RunTask`` or ``CreateService`` actions using the capacity provider strategy will fail. An example scenario for using weights is defining a strategy that contains two capacity providers and both have a weight of ``1``, then when the ``base`` is satisfied, the tasks will be split evenly across the two capacity providers. Using that same logic, if you specify a weight of ``1`` for *capacityProviderA* and a weight of ``4`` for *capacityProviderB*, then for every one task that's run using *capacityProviderA*, four tasks would use *capacityProviderB*.
*
* @return builder
*
*/
public Builder weight(Integer weight) {
return weight(Output.of(weight));
}
public CapacityProviderStrategyItemArgs build() {
return $;
}
}
}