Skip to main content

warm_pools

Creates, updates, deletes or gets a warm_pool resource or lists warm_pools in a region

Overview

Namewarm_pools
TypeResource
DescriptionResource schema for AWS::AutoScaling::WarmPool.
Idawscc.autoscaling.warm_pools

Fields

NameDatatypeDescription
auto_scaling_group_namestring
max_group_prepared_capacityinteger
min_sizeinteger
pool_statestring
instance_reuse_policyobject
regionstringAWS region.

For more information, see AWS::AutoScaling::WarmPool.

Methods

NameResourceAccessible byRequired Params
create_resourcewarm_poolsINSERTAutoScalingGroupName, region
delete_resourcewarm_poolsDELETEIdentifier, region
update_resourcewarm_poolsUPDATEIdentifier, PatchDocument, region
list_resourceswarm_pools_list_onlySELECTregion
get_resourcewarm_poolsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual warm_pool.

SELECT
region,
auto_scaling_group_name,
max_group_prepared_capacity,
min_size,
pool_state,
instance_reuse_policy
FROM awscc.autoscaling.warm_pools
WHERE
region = '{{ region }}' AND
Identifier = '{{ auto_scaling_group_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new warm_pool resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.autoscaling.warm_pools (
AutoScalingGroupName,
region
)
SELECT
'{{ auto_scaling_group_name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a warm_pool resource, using stack-deploy.

/*+ update */
UPDATE awscc.autoscaling.warm_pools
SET PatchDocument = string('{{ {
"MaxGroupPreparedCapacity": max_group_prepared_capacity,
"MinSize": min_size,
"PoolState": pool_state,
"InstanceReusePolicy": instance_reuse_policy
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ auto_scaling_group_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.autoscaling.warm_pools
WHERE
Identifier = '{{ auto_scaling_group_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the warm_pools resource, the following permissions are required:

autoscaling:PutWarmPool,
autoscaling:DescribeWarmPool,
autoscaling:DescribeAutoScalingGroups