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
Idawscc.codebuild.fleets

Fields

NameDatatypeDescription
namestring
base_capacityinteger
environment_typestring
compute_typestring
overflow_behaviorstring
fleet_service_rolestring
fleet_vpc_configobject
fleet_proxy_configurationobject
tagsarray
arnstring
image_idstring
scaling_configurationobject
compute_configurationobject
regionstringAWS region.

For more information, see AWS::CodeBuild::Fleet.

Methods

NameResourceAccessible byRequired Params
create_resourcefleetsINSERTregion
delete_resourcefleetsDELETEIdentifier, region
update_resourcefleetsUPDATEIdentifier, PatchDocument, region
list_resourcesfleets_list_onlySELECTregion
get_resourcefleetsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual fleet.

SELECT
region,
name,
base_capacity,
environment_type,
compute_type,
overflow_behavior,
fleet_service_role,
fleet_vpc_config,
fleet_proxy_configuration,
tags,
arn,
image_id,
scaling_configuration,
compute_configuration
FROM awscc.codebuild.fleets
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.codebuild.fleets (
Name,
BaseCapacity,
EnvironmentType,
ComputeType,
OverflowBehavior,
FleetServiceRole,
FleetVpcConfig,
FleetProxyConfiguration,
Tags,
ImageId,
ScalingConfiguration,
ComputeConfiguration,
region
)
SELECT
'{{ name }}',
'{{ base_capacity }}',
'{{ environment_type }}',
'{{ compute_type }}',
'{{ overflow_behavior }}',
'{{ fleet_service_role }}',
'{{ fleet_vpc_config }}',
'{{ fleet_proxy_configuration }}',
'{{ tags }}',
'{{ image_id }}',
'{{ scaling_configuration }}',
'{{ compute_configuration }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.codebuild.fleets
SET PatchDocument = string('{{ {
"Name": name,
"BaseCapacity": base_capacity,
"EnvironmentType": environment_type,
"ComputeType": compute_type,
"OverflowBehavior": overflow_behavior,
"FleetServiceRole": fleet_service_role,
"FleetVpcConfig": fleet_vpc_config,
"FleetProxyConfiguration": fleet_proxy_configuration,
"Tags": tags,
"ImageId": image_id,
"ScalingConfiguration": scaling_configuration,
"ComputeConfiguration": compute_configuration
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.codebuild.fleets
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

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

codebuild:BatchGetFleets,
codebuild:CreateFleet,
iam:PassRole