Skip to main content

fleets

Creates, updates, deletes or gets a fleet resource or lists fleets in a region

Overview

Namefleets
TypeResource
DescriptionResource Type definition for AWS::CodeBuild::Fleet
Idaws.codebuild.fleets

Fields

NameDatatypeDescription
namestring
base_capacityinteger
environment_typestring
compute_typestring
overflow_behaviorstring
fleet_service_rolestring
fleet_vpc_configobject
tagsarray
arnstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all fleets in a region.

SELECT
region,
name,
base_capacity,
environment_type,
compute_type,
overflow_behavior,
fleet_service_role,
fleet_vpc_config,
tags,
arn
FROM aws.codebuild.fleets
WHERE region = 'us-east-1';

Gets all properties from an individual fleet.

SELECT
region,
name,
base_capacity,
environment_type,
compute_type,
overflow_behavior,
fleet_service_role,
fleet_vpc_config,
tags,
arn
FROM aws.codebuild.fleets
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.codebuild.fleets (
Name,
BaseCapacity,
EnvironmentType,
ComputeType,
OverflowBehavior,
FleetServiceRole,
FleetVpcConfig,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ BaseCapacity }}',
'{{ EnvironmentType }}',
'{{ ComputeType }}',
'{{ OverflowBehavior }}',
'{{ FleetServiceRole }}',
'{{ FleetVpcConfig }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.codebuild.fleets
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

codebuild:BatchGetFleets,
codebuild:CreateFleet,
iam:PassRole

Delete

codebuild:BatchGetFleets,
codebuild:DeleteFleet

Read

codebuild:BatchGetFleets

List

codebuild:ListFleets

Update

codebuild:BatchGetFleets,
codebuild:UpdateFleet,
iam:PassRole