Skip to content

Commit

Permalink
feat(client-codebuild): AWS CodeBuild now supports overflow behavior …
Browse files Browse the repository at this point in the history
…on Reserved Capacity.
  • Loading branch information
awstools committed Mar 15, 2024
1 parent 7fbd215 commit 9cfb002
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 0 deletions.
Expand Up @@ -68,6 +68,7 @@ export interface BatchGetFleetsCommandOutput extends BatchGetFleetsOutput, __Met
* // maxCapacity: Number("int"),
* // desiredCapacity: Number("int"),
* // },
* // overflowBehavior: "QUEUE" || "ON_DEMAND",
* // tags: [ // TagList
* // { // Tag
* // key: "STRING_VALUE",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-codebuild/src/commands/CreateFleetCommand.ts
Expand Up @@ -49,6 +49,7 @@ export interface CreateFleetCommandOutput extends CreateFleetOutput, __MetadataB
* ],
* maxCapacity: Number("int"),
* },
* overflowBehavior: "QUEUE" || "ON_DEMAND",
* tags: [ // TagList
* { // Tag
* key: "STRING_VALUE",
Expand Down Expand Up @@ -84,6 +85,7 @@ export interface CreateFleetCommandOutput extends CreateFleetOutput, __MetadataB
* // maxCapacity: Number("int"),
* // desiredCapacity: Number("int"),
* // },
* // overflowBehavior: "QUEUE" || "ON_DEMAND",
* // tags: [ // TagList
* // { // Tag
* // key: "STRING_VALUE",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-codebuild/src/commands/UpdateFleetCommand.ts
Expand Up @@ -49,6 +49,7 @@ export interface UpdateFleetCommandOutput extends UpdateFleetOutput, __MetadataB
* ],
* maxCapacity: Number("int"),
* },
* overflowBehavior: "QUEUE" || "ON_DEMAND",
* tags: [ // TagList
* { // Tag
* key: "STRING_VALUE",
Expand Down Expand Up @@ -84,6 +85,7 @@ export interface UpdateFleetCommandOutput extends UpdateFleetOutput, __MetadataB
* // maxCapacity: Number("int"),
* // desiredCapacity: Number("int"),
* // },
* // overflowBehavior: "QUEUE" || "ON_DEMAND",
* // tags: [ // TagList
* // { // Tag
* // key: "STRING_VALUE",
Expand Down
59 changes: 59 additions & 0 deletions clients/client-codebuild/src/models/models_0.ts
Expand Up @@ -2695,6 +2695,20 @@ export interface BatchGetFleetsInput {
names: string[] | undefined;
}

/**
* @public
* @enum
*/
export const FleetOverflowBehavior = {
ON_DEMAND: "ON_DEMAND",
QUEUE: "QUEUE",
} as const;

/**
* @public
*/
export type FleetOverflowBehavior = (typeof FleetOverflowBehavior)[keyof typeof FleetOverflowBehavior];

/**
* @public
* @enum
Expand Down Expand Up @@ -3046,6 +3060,21 @@ export interface Fleet {
*/
scalingConfiguration?: ScalingConfigurationOutput;

/**
* <p>The compute fleet overflow behavior.</p>
* <ul>
* <li>
* <p>For overflow behavior <code>QUEUE</code>, your overflow builds need to wait on
* the existing fleet instance to become available.</p>
* </li>
* <li>
* <p>For overflow behavior <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p>
* </li>
* </ul>
* @public
*/
overflowBehavior?: FleetOverflowBehavior;

/**
* <p>A list of tag key and value pairs associated with this compute fleet.</p>
* <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project
Expand Down Expand Up @@ -4504,6 +4533,21 @@ export interface CreateFleetInput {
*/
scalingConfiguration?: ScalingConfigurationInput;

/**
* <p>The compute fleet overflow behavior.</p>
* <ul>
* <li>
* <p>For overflow behavior <code>QUEUE</code>, your overflow builds need to wait on
* the existing fleet instance to become available.</p>
* </li>
* <li>
* <p>For overflow behavior <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p>
* </li>
* </ul>
* @public
*/
overflowBehavior?: FleetOverflowBehavior;

/**
* <p>A list of tag key and value pairs associated with this compute fleet.</p>
* <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project
Expand Down Expand Up @@ -7621,6 +7665,21 @@ export interface UpdateFleetInput {
*/
scalingConfiguration?: ScalingConfigurationInput;

/**
* <p>The compute fleet overflow behavior.</p>
* <ul>
* <li>
* <p>For overflow behavior <code>QUEUE</code>, your overflow builds need to wait on
* the existing fleet instance to become available.</p>
* </li>
* <li>
* <p>For overflow behavior <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p>
* </li>
* </ul>
* @public
*/
overflowBehavior?: FleetOverflowBehavior;

/**
* <p>A list of tag key and value pairs associated with this compute fleet.</p>
* <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project
Expand Down
3 changes: 3 additions & 0 deletions clients/client-codebuild/src/protocols/Aws_json1_1.ts
Expand Up @@ -2045,6 +2045,7 @@ const se_CreateFleetInput = (input: CreateFleetInput, context: __SerdeContext):
computeType: [],
environmentType: [],
name: [],
overflowBehavior: [],
scalingConfiguration: (_) => se_ScalingConfigurationInput(_, context),
tags: _json,
});
Expand Down Expand Up @@ -2252,6 +2253,7 @@ const se_UpdateFleetInput = (input: UpdateFleetInput, context: __SerdeContext):
baseCapacity: [],
computeType: [],
environmentType: [],
overflowBehavior: [],
scalingConfiguration: (_) => se_ScalingConfigurationInput(_, context),
tags: _json,
});
Expand Down Expand Up @@ -2714,6 +2716,7 @@ const de_Fleet = (output: any, context: __SerdeContext): Fleet => {
id: __expectString,
lastModified: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
name: __expectString,
overflowBehavior: __expectString,
scalingConfiguration: (_: any) => de_ScalingConfigurationOutput(_, context),
status: _json,
tags: _json,
Expand Down
35 changes: 35 additions & 0 deletions codegen/sdk-codegen/aws-models/codebuild.json
Expand Up @@ -2872,6 +2872,12 @@
"smithy.api#documentation": "<p>The scaling configuration of the compute fleet.</p>"
}
},
"overflowBehavior": {
"target": "com.amazonaws.codebuild#FleetOverflowBehavior",
"traits": {
"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>"
}
},
"tags": {
"target": "com.amazonaws.codebuild#TagList",
"traits": {
Expand Down Expand Up @@ -4076,6 +4082,12 @@
"smithy.api#documentation": "<p>The scaling configuration of the compute fleet.</p>"
}
},
"overflowBehavior": {
"target": "com.amazonaws.codebuild#FleetOverflowBehavior",
"traits": {
"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>"
}
},
"tags": {
"target": "com.amazonaws.codebuild#TagList",
"traits": {
Expand Down Expand Up @@ -4146,6 +4158,23 @@
}
}
},
"com.amazonaws.codebuild#FleetOverflowBehavior": {
"type": "enum",
"members": {
"QUEUE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "QUEUE"
}
},
"ON_DEMAND": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "ON_DEMAND"
}
}
}
},
"com.amazonaws.codebuild#FleetScalingMetricType": {
"type": "enum",
"members": {
Expand Down Expand Up @@ -8365,6 +8394,12 @@
"smithy.api#documentation": "<p>The scaling configuration of the compute fleet.</p>"
}
},
"overflowBehavior": {
"target": "com.amazonaws.codebuild#FleetOverflowBehavior",
"traits": {
"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>"
}
},
"tags": {
"target": "com.amazonaws.codebuild#TagList",
"traits": {
Expand Down

0 comments on commit 9cfb002

Please sign in to comment.