Skip to main content

fleets

Creates, updates, deletes, gets or lists a fleets resource.

Overview​

Namefleets
TypeResource
Idaws.codebuild.fleets

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
fleetsarrayInformation about the requested compute fleets.
fleets_not_foundarrayThe names of compute fleets for which information could not be found.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_fleetsselectregionGets information about one or more compute fleets.
list_fleetsselectregionGets a list of compute fleet names with each compute fleet name representing a single compute fleet.
create_fleetinsertregion, name, baseCapacity, environmentType, computeTypeCreates a compute fleet.
update_fleetupdateregion, arnUpdates a compute fleet.
delete_fleetdeleteregionDeletes a compute fleet. When you delete a compute fleet, its builds are not deleted.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples​

Gets information about one or more compute fleets.

SELECT
fleets,
fleets_not_found
FROM aws.codebuild.fleets
WHERE region = '{{ region }}' -- required
;

INSERT examples​

Creates a compute fleet.

INSERT INTO aws.codebuild.fleets (
name,
baseCapacity,
environmentType,
computeType,
computeConfiguration,
scalingConfiguration,
overflowBehavior,
vpcConfig,
proxyConfiguration,
imageId,
fleetServiceRole,
tags,
region
)
SELECT
'{{ name }}' /* required */,
{{ baseCapacity }} /* required */,
'{{ environmentType }}' /* required */,
'{{ computeType }}' /* required */,
'{{ computeConfiguration }}',
'{{ scalingConfiguration }}',
'{{ overflowBehavior }}',
'{{ vpcConfig }}',
'{{ proxyConfiguration }}',
'{{ imageId }}',
'{{ fleetServiceRole }}',
'{{ tags }}',
'{{ region }}'
RETURNING
fleet
;

UPDATE examples​

Updates a compute fleet.

UPDATE aws.codebuild.fleets
SET
arn = '{{ arn }}',
baseCapacity = {{ baseCapacity }},
environmentType = '{{ environmentType }}',
computeType = '{{ computeType }}',
computeConfiguration = '{{ computeConfiguration }}',
scalingConfiguration = '{{ scalingConfiguration }}',
overflowBehavior = '{{ overflowBehavior }}',
vpcConfig = '{{ vpcConfig }}',
proxyConfiguration = '{{ proxyConfiguration }}',
imageId = '{{ imageId }}',
fleetServiceRole = '{{ fleetServiceRole }}',
tags = '{{ tags }}'
WHERE
region = '{{ region }}' --required
AND arn = '{{ arn }}' --required
RETURNING
fleet;

DELETE examples​

Deletes a compute fleet. When you delete a compute fleet, its builds are not deleted.

DELETE FROM aws.codebuild.fleets
WHERE region = '{{ region }}' --required
;