We recommend new projects start with resources from the AWS provider.
aws-native.autoscaling.getWarmPool
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource schema for AWS::AutoScaling::WarmPool.
Using getWarmPool
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getWarmPool(args: GetWarmPoolArgs, opts?: InvokeOptions): Promise<GetWarmPoolResult>
function getWarmPoolOutput(args: GetWarmPoolOutputArgs, opts?: InvokeOptions): Output<GetWarmPoolResult>def get_warm_pool(auto_scaling_group_name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetWarmPoolResult
def get_warm_pool_output(auto_scaling_group_name: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetWarmPoolResult]func LookupWarmPool(ctx *Context, args *LookupWarmPoolArgs, opts ...InvokeOption) (*LookupWarmPoolResult, error)
func LookupWarmPoolOutput(ctx *Context, args *LookupWarmPoolOutputArgs, opts ...InvokeOption) LookupWarmPoolResultOutput> Note: This function is named LookupWarmPool in the Go SDK.
public static class GetWarmPool 
{
    public static Task<GetWarmPoolResult> InvokeAsync(GetWarmPoolArgs args, InvokeOptions? opts = null)
    public static Output<GetWarmPoolResult> Invoke(GetWarmPoolInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWarmPoolResult> getWarmPool(GetWarmPoolArgs args, InvokeOptions options)
public static Output<GetWarmPoolResult> getWarmPool(GetWarmPoolArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:autoscaling:getWarmPool
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AutoScaling stringGroup Name 
- The name of the Auto Scaling group.
- AutoScaling stringGroup Name 
- The name of the Auto Scaling group.
- autoScaling StringGroup Name 
- The name of the Auto Scaling group.
- autoScaling stringGroup Name 
- The name of the Auto Scaling group.
- auto_scaling_ strgroup_ name 
- The name of the Auto Scaling group.
- autoScaling StringGroup Name 
- The name of the Auto Scaling group.
getWarmPool Result
The following output properties are available:
- InstanceReuse Pulumi.Policy Aws Native. Auto Scaling. Outputs. Warm Pool Instance Reuse Policy 
- Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in. The default is to terminate instances in the Auto Scaling group when the group scales in.
- MaxGroup intPrepared Capacity 
- Specifies the maximum number of instances that are allowed to be in the warm pool or in any state except - Terminatedfor the Auto Scaling group. This is an optional property. Specify it only if you do not want the warm pool size to be determined by the difference between the group's maximum capacity and its desired capacity.- If a value for - MaxGroupPreparedCapacityis not specified, Amazon EC2 Auto Scaling launches and maintains the difference between the group's maximum capacity and its desired capacity. If you specify a value for- MaxGroupPreparedCapacity, Amazon EC2 Auto Scaling uses the difference between the- MaxGroupPreparedCapacityand the desired capacity instead.- The size of the warm pool is dynamic. Only when - MaxGroupPreparedCapacityand- MinSizeare set to the same value does the warm pool have an absolute size.- If the desired capacity of the Auto Scaling group is higher than the - MaxGroupPreparedCapacity, the capacity of the warm pool is 0, unless you specify a value for- MinSize. To remove a value that you previously set, include the property but specify -1 for the value.
- MinSize int
- Specifies the minimum number of instances to maintain in the warm pool. This helps you to ensure that there is always a certain number of warmed instances available to handle traffic spikes. Defaults to 0 if not specified.
- PoolState string
- Sets the instance state to transition to after the lifecycle actions are complete. Default is Stopped.
- InstanceReuse WarmPolicy Pool Instance Reuse Policy 
- Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in. The default is to terminate instances in the Auto Scaling group when the group scales in.
- MaxGroup intPrepared Capacity 
- Specifies the maximum number of instances that are allowed to be in the warm pool or in any state except - Terminatedfor the Auto Scaling group. This is an optional property. Specify it only if you do not want the warm pool size to be determined by the difference between the group's maximum capacity and its desired capacity.- If a value for - MaxGroupPreparedCapacityis not specified, Amazon EC2 Auto Scaling launches and maintains the difference between the group's maximum capacity and its desired capacity. If you specify a value for- MaxGroupPreparedCapacity, Amazon EC2 Auto Scaling uses the difference between the- MaxGroupPreparedCapacityand the desired capacity instead.- The size of the warm pool is dynamic. Only when - MaxGroupPreparedCapacityand- MinSizeare set to the same value does the warm pool have an absolute size.- If the desired capacity of the Auto Scaling group is higher than the - MaxGroupPreparedCapacity, the capacity of the warm pool is 0, unless you specify a value for- MinSize. To remove a value that you previously set, include the property but specify -1 for the value.
- MinSize int
- Specifies the minimum number of instances to maintain in the warm pool. This helps you to ensure that there is always a certain number of warmed instances available to handle traffic spikes. Defaults to 0 if not specified.
- PoolState string
- Sets the instance state to transition to after the lifecycle actions are complete. Default is Stopped.
- instanceReuse WarmPolicy Pool Instance Reuse Policy 
- Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in. The default is to terminate instances in the Auto Scaling group when the group scales in.
- maxGroup IntegerPrepared Capacity 
- Specifies the maximum number of instances that are allowed to be in the warm pool or in any state except - Terminatedfor the Auto Scaling group. This is an optional property. Specify it only if you do not want the warm pool size to be determined by the difference between the group's maximum capacity and its desired capacity.- If a value for - MaxGroupPreparedCapacityis not specified, Amazon EC2 Auto Scaling launches and maintains the difference between the group's maximum capacity and its desired capacity. If you specify a value for- MaxGroupPreparedCapacity, Amazon EC2 Auto Scaling uses the difference between the- MaxGroupPreparedCapacityand the desired capacity instead.- The size of the warm pool is dynamic. Only when - MaxGroupPreparedCapacityand- MinSizeare set to the same value does the warm pool have an absolute size.- If the desired capacity of the Auto Scaling group is higher than the - MaxGroupPreparedCapacity, the capacity of the warm pool is 0, unless you specify a value for- MinSize. To remove a value that you previously set, include the property but specify -1 for the value.
- minSize Integer
- Specifies the minimum number of instances to maintain in the warm pool. This helps you to ensure that there is always a certain number of warmed instances available to handle traffic spikes. Defaults to 0 if not specified.
- poolState String
- Sets the instance state to transition to after the lifecycle actions are complete. Default is Stopped.
- instanceReuse WarmPolicy Pool Instance Reuse Policy 
- Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in. The default is to terminate instances in the Auto Scaling group when the group scales in.
- maxGroup numberPrepared Capacity 
- Specifies the maximum number of instances that are allowed to be in the warm pool or in any state except - Terminatedfor the Auto Scaling group. This is an optional property. Specify it only if you do not want the warm pool size to be determined by the difference between the group's maximum capacity and its desired capacity.- If a value for - MaxGroupPreparedCapacityis not specified, Amazon EC2 Auto Scaling launches and maintains the difference between the group's maximum capacity and its desired capacity. If you specify a value for- MaxGroupPreparedCapacity, Amazon EC2 Auto Scaling uses the difference between the- MaxGroupPreparedCapacityand the desired capacity instead.- The size of the warm pool is dynamic. Only when - MaxGroupPreparedCapacityand- MinSizeare set to the same value does the warm pool have an absolute size.- If the desired capacity of the Auto Scaling group is higher than the - MaxGroupPreparedCapacity, the capacity of the warm pool is 0, unless you specify a value for- MinSize. To remove a value that you previously set, include the property but specify -1 for the value.
- minSize number
- Specifies the minimum number of instances to maintain in the warm pool. This helps you to ensure that there is always a certain number of warmed instances available to handle traffic spikes. Defaults to 0 if not specified.
- poolState string
- Sets the instance state to transition to after the lifecycle actions are complete. Default is Stopped.
- instance_reuse_ Warmpolicy Pool Instance Reuse Policy 
- Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in. The default is to terminate instances in the Auto Scaling group when the group scales in.
- max_group_ intprepared_ capacity 
- Specifies the maximum number of instances that are allowed to be in the warm pool or in any state except - Terminatedfor the Auto Scaling group. This is an optional property. Specify it only if you do not want the warm pool size to be determined by the difference between the group's maximum capacity and its desired capacity.- If a value for - MaxGroupPreparedCapacityis not specified, Amazon EC2 Auto Scaling launches and maintains the difference between the group's maximum capacity and its desired capacity. If you specify a value for- MaxGroupPreparedCapacity, Amazon EC2 Auto Scaling uses the difference between the- MaxGroupPreparedCapacityand the desired capacity instead.- The size of the warm pool is dynamic. Only when - MaxGroupPreparedCapacityand- MinSizeare set to the same value does the warm pool have an absolute size.- If the desired capacity of the Auto Scaling group is higher than the - MaxGroupPreparedCapacity, the capacity of the warm pool is 0, unless you specify a value for- MinSize. To remove a value that you previously set, include the property but specify -1 for the value.
- min_size int
- Specifies the minimum number of instances to maintain in the warm pool. This helps you to ensure that there is always a certain number of warmed instances available to handle traffic spikes. Defaults to 0 if not specified.
- pool_state str
- Sets the instance state to transition to after the lifecycle actions are complete. Default is Stopped.
- instanceReuse Property MapPolicy 
- Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in. The default is to terminate instances in the Auto Scaling group when the group scales in.
- maxGroup NumberPrepared Capacity 
- Specifies the maximum number of instances that are allowed to be in the warm pool or in any state except - Terminatedfor the Auto Scaling group. This is an optional property. Specify it only if you do not want the warm pool size to be determined by the difference between the group's maximum capacity and its desired capacity.- If a value for - MaxGroupPreparedCapacityis not specified, Amazon EC2 Auto Scaling launches and maintains the difference between the group's maximum capacity and its desired capacity. If you specify a value for- MaxGroupPreparedCapacity, Amazon EC2 Auto Scaling uses the difference between the- MaxGroupPreparedCapacityand the desired capacity instead.- The size of the warm pool is dynamic. Only when - MaxGroupPreparedCapacityand- MinSizeare set to the same value does the warm pool have an absolute size.- If the desired capacity of the Auto Scaling group is higher than the - MaxGroupPreparedCapacity, the capacity of the warm pool is 0, unless you specify a value for- MinSize. To remove a value that you previously set, include the property but specify -1 for the value.
- minSize Number
- Specifies the minimum number of instances to maintain in the warm pool. This helps you to ensure that there is always a certain number of warmed instances available to handle traffic spikes. Defaults to 0 if not specified.
- poolState String
- Sets the instance state to transition to after the lifecycle actions are complete. Default is Stopped.
Supporting Types
WarmPoolInstanceReusePolicy    
- ReuseOn boolScale In 
- Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
- ReuseOn boolScale In 
- Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
- reuseOn BooleanScale In 
- Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
- reuseOn booleanScale In 
- Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
- reuse_on_ boolscale_ in 
- Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
- reuseOn BooleanScale In 
- Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.