Skip to content

Commit 9cfb002

Browse files
author
awstools
committedMar 15, 2024
feat(client-codebuild): AWS CodeBuild now supports overflow behavior on Reserved Capacity.
1 parent 7fbd215 commit 9cfb002

File tree

6 files changed

+102
-0
lines changed

6 files changed

+102
-0
lines changed
 

‎clients/client-codebuild/src/commands/BatchGetFleetsCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export interface BatchGetFleetsCommandOutput extends BatchGetFleetsOutput, __Met
6868
* // maxCapacity: Number("int"),
6969
* // desiredCapacity: Number("int"),
7070
* // },
71+
* // overflowBehavior: "QUEUE" || "ON_DEMAND",
7172
* // tags: [ // TagList
7273
* // { // Tag
7374
* // key: "STRING_VALUE",

‎clients/client-codebuild/src/commands/CreateFleetCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export interface CreateFleetCommandOutput extends CreateFleetOutput, __MetadataB
4949
* ],
5050
* maxCapacity: Number("int"),
5151
* },
52+
* overflowBehavior: "QUEUE" || "ON_DEMAND",
5253
* tags: [ // TagList
5354
* { // Tag
5455
* key: "STRING_VALUE",
@@ -84,6 +85,7 @@ export interface CreateFleetCommandOutput extends CreateFleetOutput, __MetadataB
8485
* // maxCapacity: Number("int"),
8586
* // desiredCapacity: Number("int"),
8687
* // },
88+
* // overflowBehavior: "QUEUE" || "ON_DEMAND",
8789
* // tags: [ // TagList
8890
* // { // Tag
8991
* // key: "STRING_VALUE",

‎clients/client-codebuild/src/commands/UpdateFleetCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export interface UpdateFleetCommandOutput extends UpdateFleetOutput, __MetadataB
4949
* ],
5050
* maxCapacity: Number("int"),
5151
* },
52+
* overflowBehavior: "QUEUE" || "ON_DEMAND",
5253
* tags: [ // TagList
5354
* { // Tag
5455
* key: "STRING_VALUE",
@@ -84,6 +85,7 @@ export interface UpdateFleetCommandOutput extends UpdateFleetOutput, __MetadataB
8485
* // maxCapacity: Number("int"),
8586
* // desiredCapacity: Number("int"),
8687
* // },
88+
* // overflowBehavior: "QUEUE" || "ON_DEMAND",
8789
* // tags: [ // TagList
8890
* // { // Tag
8991
* // key: "STRING_VALUE",

‎clients/client-codebuild/src/models/models_0.ts

+59
Original file line numberDiff line numberDiff line change
@@ -2695,6 +2695,20 @@ export interface BatchGetFleetsInput {
26952695
names: string[] | undefined;
26962696
}
26972697

2698+
/**
2699+
* @public
2700+
* @enum
2701+
*/
2702+
export const FleetOverflowBehavior = {
2703+
ON_DEMAND: "ON_DEMAND",
2704+
QUEUE: "QUEUE",
2705+
} as const;
2706+
2707+
/**
2708+
* @public
2709+
*/
2710+
export type FleetOverflowBehavior = (typeof FleetOverflowBehavior)[keyof typeof FleetOverflowBehavior];
2711+
26982712
/**
26992713
* @public
27002714
* @enum
@@ -3046,6 +3060,21 @@ export interface Fleet {
30463060
*/
30473061
scalingConfiguration?: ScalingConfigurationOutput;
30483062

3063+
/**
3064+
* <p>The compute fleet overflow behavior.</p>
3065+
* <ul>
3066+
* <li>
3067+
* <p>For overflow behavior <code>QUEUE</code>, your overflow builds need to wait on
3068+
* the existing fleet instance to become available.</p>
3069+
* </li>
3070+
* <li>
3071+
* <p>For overflow behavior <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p>
3072+
* </li>
3073+
* </ul>
3074+
* @public
3075+
*/
3076+
overflowBehavior?: FleetOverflowBehavior;
3077+
30493078
/**
30503079
* <p>A list of tag key and value pairs associated with this compute fleet.</p>
30513080
* <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project
@@ -4504,6 +4533,21 @@ export interface CreateFleetInput {
45044533
*/
45054534
scalingConfiguration?: ScalingConfigurationInput;
45064535

4536+
/**
4537+
* <p>The compute fleet overflow behavior.</p>
4538+
* <ul>
4539+
* <li>
4540+
* <p>For overflow behavior <code>QUEUE</code>, your overflow builds need to wait on
4541+
* the existing fleet instance to become available.</p>
4542+
* </li>
4543+
* <li>
4544+
* <p>For overflow behavior <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p>
4545+
* </li>
4546+
* </ul>
4547+
* @public
4548+
*/
4549+
overflowBehavior?: FleetOverflowBehavior;
4550+
45074551
/**
45084552
* <p>A list of tag key and value pairs associated with this compute fleet.</p>
45094553
* <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project
@@ -7621,6 +7665,21 @@ export interface UpdateFleetInput {
76217665
*/
76227666
scalingConfiguration?: ScalingConfigurationInput;
76237667

7668+
/**
7669+
* <p>The compute fleet overflow behavior.</p>
7670+
* <ul>
7671+
* <li>
7672+
* <p>For overflow behavior <code>QUEUE</code>, your overflow builds need to wait on
7673+
* the existing fleet instance to become available.</p>
7674+
* </li>
7675+
* <li>
7676+
* <p>For overflow behavior <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p>
7677+
* </li>
7678+
* </ul>
7679+
* @public
7680+
*/
7681+
overflowBehavior?: FleetOverflowBehavior;
7682+
76247683
/**
76257684
* <p>A list of tag key and value pairs associated with this compute fleet.</p>
76267685
* <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project

‎clients/client-codebuild/src/protocols/Aws_json1_1.ts

+3
Original file line numberDiff line numberDiff line change
@@ -2045,6 +2045,7 @@ const se_CreateFleetInput = (input: CreateFleetInput, context: __SerdeContext):
20452045
computeType: [],
20462046
environmentType: [],
20472047
name: [],
2048+
overflowBehavior: [],
20482049
scalingConfiguration: (_) => se_ScalingConfigurationInput(_, context),
20492050
tags: _json,
20502051
});
@@ -2252,6 +2253,7 @@ const se_UpdateFleetInput = (input: UpdateFleetInput, context: __SerdeContext):
22522253
baseCapacity: [],
22532254
computeType: [],
22542255
environmentType: [],
2256+
overflowBehavior: [],
22552257
scalingConfiguration: (_) => se_ScalingConfigurationInput(_, context),
22562258
tags: _json,
22572259
});
@@ -2714,6 +2716,7 @@ const de_Fleet = (output: any, context: __SerdeContext): Fleet => {
27142716
id: __expectString,
27152717
lastModified: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
27162718
name: __expectString,
2719+
overflowBehavior: __expectString,
27172720
scalingConfiguration: (_: any) => de_ScalingConfigurationOutput(_, context),
27182721
status: _json,
27192722
tags: _json,

‎codegen/sdk-codegen/aws-models/codebuild.json

+35
Original file line numberDiff line numberDiff line change
@@ -2872,6 +2872,12 @@
28722872
"smithy.api#documentation": "<p>The scaling configuration of the compute fleet.</p>"
28732873
}
28742874
},
2875+
"overflowBehavior": {
2876+
"target": "com.amazonaws.codebuild#FleetOverflowBehavior",
2877+
"traits": {
2878+
"smithy.api#documentation": "<p>The compute fleet overflow behavior.</p>\n <ul>\n <li>\n <p>For overflow behavior <code>QUEUE</code>, your overflow builds need to wait on \n the existing fleet instance to become available.</p>\n </li>\n <li>\n <p>For overflow behavior <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p>\n </li>\n </ul>"
2879+
}
2880+
},
28752881
"tags": {
28762882
"target": "com.amazonaws.codebuild#TagList",
28772883
"traits": {
@@ -4076,6 +4082,12 @@
40764082
"smithy.api#documentation": "<p>The scaling configuration of the compute fleet.</p>"
40774083
}
40784084
},
4085+
"overflowBehavior": {
4086+
"target": "com.amazonaws.codebuild#FleetOverflowBehavior",
4087+
"traits": {
4088+
"smithy.api#documentation": "<p>The compute fleet overflow behavior.</p>\n <ul>\n <li>\n <p>For overflow behavior <code>QUEUE</code>, your overflow builds need to wait on \n the existing fleet instance to become available.</p>\n </li>\n <li>\n <p>For overflow behavior <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p>\n </li>\n </ul>"
4089+
}
4090+
},
40794091
"tags": {
40804092
"target": "com.amazonaws.codebuild#TagList",
40814093
"traits": {
@@ -4146,6 +4158,23 @@
41464158
}
41474159
}
41484160
},
4161+
"com.amazonaws.codebuild#FleetOverflowBehavior": {
4162+
"type": "enum",
4163+
"members": {
4164+
"QUEUE": {
4165+
"target": "smithy.api#Unit",
4166+
"traits": {
4167+
"smithy.api#enumValue": "QUEUE"
4168+
}
4169+
},
4170+
"ON_DEMAND": {
4171+
"target": "smithy.api#Unit",
4172+
"traits": {
4173+
"smithy.api#enumValue": "ON_DEMAND"
4174+
}
4175+
}
4176+
}
4177+
},
41494178
"com.amazonaws.codebuild#FleetScalingMetricType": {
41504179
"type": "enum",
41514180
"members": {
@@ -8365,6 +8394,12 @@
83658394
"smithy.api#documentation": "<p>The scaling configuration of the compute fleet.</p>"
83668395
}
83678396
},
8397+
"overflowBehavior": {
8398+
"target": "com.amazonaws.codebuild#FleetOverflowBehavior",
8399+
"traits": {
8400+
"smithy.api#documentation": "<p>The compute fleet overflow behavior.</p>\n <ul>\n <li>\n <p>For overflow behavior <code>QUEUE</code>, your overflow builds need to wait on \n the existing fleet instance to become available.</p>\n </li>\n <li>\n <p>For overflow behavior <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p>\n </li>\n </ul>"
8401+
}
8402+
},
83688403
"tags": {
83698404
"target": "com.amazonaws.codebuild#TagList",
83708405
"traits": {

0 commit comments

Comments
 (0)
Please sign in to comment.