Skip to content

Commit 9287267

Browse files
author
awstools
committed
feat(client-codepipeline): AWS CodePipeline V2 type pipelines now support Managed Compute Rule.
1 parent 00737e5 commit 9287267

File tree

6 files changed

+86
-10
lines changed

6 files changed

+86
-10
lines changed

clients/client-codepipeline/src/commands/CreatePipelineCommand.ts

+18
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
130130
* configuration: { // RuleConfigurationMap
131131
* "<keys>": "STRING_VALUE",
132132
* },
133+
* commands: [
134+
* "STRING_VALUE",
135+
* ],
133136
* inputArtifacts: [
134137
* {
135138
* name: "STRING_VALUE", // required
@@ -159,6 +162,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
159162
* configuration: {
160163
* "<keys>": "STRING_VALUE",
161164
* },
165+
* commands: [
166+
* "STRING_VALUE",
167+
* ],
162168
* inputArtifacts: [
163169
* {
164170
* name: "STRING_VALUE", // required
@@ -188,6 +194,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
188194
* configuration: {
189195
* "<keys>": "STRING_VALUE",
190196
* },
197+
* commands: [
198+
* "STRING_VALUE",
199+
* ],
191200
* inputArtifacts: [
192201
* {
193202
* name: "STRING_VALUE", // required
@@ -371,6 +380,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
371380
* // configuration: { // RuleConfigurationMap
372381
* // "<keys>": "STRING_VALUE",
373382
* // },
383+
* // commands: [
384+
* // "STRING_VALUE",
385+
* // ],
374386
* // inputArtifacts: [
375387
* // {
376388
* // name: "STRING_VALUE", // required
@@ -400,6 +412,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
400412
* // configuration: {
401413
* // "<keys>": "STRING_VALUE",
402414
* // },
415+
* // commands: [
416+
* // "STRING_VALUE",
417+
* // ],
403418
* // inputArtifacts: [
404419
* // {
405420
* // name: "STRING_VALUE", // required
@@ -429,6 +444,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
429444
* // configuration: {
430445
* // "<keys>": "STRING_VALUE",
431446
* // },
447+
* // commands: [
448+
* // "STRING_VALUE",
449+
* // ],
432450
* // inputArtifacts: [
433451
* // {
434452
* // name: "STRING_VALUE", // required

clients/client-codepipeline/src/commands/GetPipelineCommand.ts

+9
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
132132
* // configuration: { // RuleConfigurationMap
133133
* // "<keys>": "STRING_VALUE",
134134
* // },
135+
* // commands: [
136+
* // "STRING_VALUE",
137+
* // ],
135138
* // inputArtifacts: [
136139
* // {
137140
* // name: "STRING_VALUE", // required
@@ -161,6 +164,9 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
161164
* // configuration: {
162165
* // "<keys>": "STRING_VALUE",
163166
* // },
167+
* // commands: [
168+
* // "STRING_VALUE",
169+
* // ],
164170
* // inputArtifacts: [
165171
* // {
166172
* // name: "STRING_VALUE", // required
@@ -190,6 +196,9 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
190196
* // configuration: {
191197
* // "<keys>": "STRING_VALUE",
192198
* // },
199+
* // commands: [
200+
* // "STRING_VALUE",
201+
* // ],
193202
* // inputArtifacts: [
194203
* // {
195204
* // name: "STRING_VALUE", // required

clients/client-codepipeline/src/commands/ListRuleTypesCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export interface ListRuleTypesCommandInput extends ListRuleTypesInput {}
2828
export interface ListRuleTypesCommandOutput extends ListRuleTypesOutput, __MetadataBearer {}
2929

3030
/**
31-
* <p>Lists the rules for the condition.</p>
31+
* <p>Lists the rules for the condition. For more information about conditions, see <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html">Stage
32+
* conditions</a>. For more information about rules, see the <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/rule-reference.html">CodePipeline rule reference</a>.</p>
3233
* @example
3334
* Use a bare-bones client and the command you need to make an API call.
3435
* ```javascript

clients/client-codepipeline/src/commands/UpdatePipelineCommand.ts

+18
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
127127
* configuration: { // RuleConfigurationMap
128128
* "<keys>": "STRING_VALUE",
129129
* },
130+
* commands: [
131+
* "STRING_VALUE",
132+
* ],
130133
* inputArtifacts: [
131134
* {
132135
* name: "STRING_VALUE", // required
@@ -156,6 +159,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
156159
* configuration: {
157160
* "<keys>": "STRING_VALUE",
158161
* },
162+
* commands: [
163+
* "STRING_VALUE",
164+
* ],
159165
* inputArtifacts: [
160166
* {
161167
* name: "STRING_VALUE", // required
@@ -185,6 +191,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
185191
* configuration: {
186192
* "<keys>": "STRING_VALUE",
187193
* },
194+
* commands: [
195+
* "STRING_VALUE",
196+
* ],
188197
* inputArtifacts: [
189198
* {
190199
* name: "STRING_VALUE", // required
@@ -362,6 +371,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
362371
* // configuration: { // RuleConfigurationMap
363372
* // "<keys>": "STRING_VALUE",
364373
* // },
374+
* // commands: [
375+
* // "STRING_VALUE",
376+
* // ],
365377
* // inputArtifacts: [
366378
* // {
367379
* // name: "STRING_VALUE", // required
@@ -391,6 +403,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
391403
* // configuration: {
392404
* // "<keys>": "STRING_VALUE",
393405
* // },
406+
* // commands: [
407+
* // "STRING_VALUE",
408+
* // ],
394409
* // inputArtifacts: [
395410
* // {
396411
* // name: "STRING_VALUE", // required
@@ -420,6 +435,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
420435
* // configuration: {
421436
* // "<keys>": "STRING_VALUE",
422437
* // },
438+
* // commands: [
439+
* // "STRING_VALUE",
440+
* // ],
423441
* // inputArtifacts: [
424442
* // {
425443
* // name: "STRING_VALUE", // required

clients/client-codepipeline/src/models/models_0.ts

+27-3
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,9 @@ export interface ActionTypeId {
342342
* <li>
343343
* <p>Approval</p>
344344
* </li>
345+
* <li>
346+
* <p>Compute</p>
347+
* </li>
345348
* </ul>
346349
* @public
347350
*/
@@ -1861,13 +1864,16 @@ export interface RuleTypeId {
18611864
/**
18621865
* <p>Represents information about the rule to be created for an associated condition. An
18631866
* example would be creating a new rule for an entry condition, such as a rule that checks
1864-
* for a test result before allowing the run to enter the deployment stage.</p>
1867+
* for a test result before allowing the run to enter the deployment stage. For more
1868+
* information about conditions, see <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html">Stage conditions</a>.
1869+
* For more information about rules, see the <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/rule-reference.html">CodePipeline rule
1870+
* reference</a>.</p>
18651871
* @public
18661872
*/
18671873
export interface RuleDeclaration {
18681874
/**
18691875
* <p>The name of the rule that is created for the condition, such as
1870-
* CheckAllResults.</p>
1876+
* <code>VariableCheck</code>.</p>
18711877
* @public
18721878
*/
18731879
name: string | undefined;
@@ -1885,6 +1891,17 @@ export interface RuleDeclaration {
18851891
*/
18861892
configuration?: Record<string, string> | undefined;
18871893

1894+
/**
1895+
* <p>The shell commands to run with your commands rule in CodePipeline. All commands
1896+
* are supported except multi-line formats. While CodeBuild logs and permissions
1897+
* are used, you do not need to create any resources in CodeBuild.</p>
1898+
* <note>
1899+
* <p>Using compute time for this action will incur separate charges in CodeBuild.</p>
1900+
* </note>
1901+
* @public
1902+
*/
1903+
commands?: string[] | undefined;
1904+
18881905
/**
18891906
* <p>The input artifacts fields for the rule, such as specifying an input file for the
18901907
* rule.</p>
@@ -1913,7 +1930,9 @@ export interface RuleDeclaration {
19131930

19141931
/**
19151932
* <p>The condition for the stage. A condition is made up of the rules and the result for
1916-
* the condition.</p>
1933+
* the condition. For more information about conditions, see <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html">Stage conditions</a>.
1934+
* For more information about rules, see the <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/rule-reference.html">CodePipeline rule
1935+
* reference</a>.</p>
19171936
* @public
19181937
*/
19191938
export interface Condition {
@@ -3035,6 +3054,11 @@ export interface GetActionTypeInput {
30353054
* <code>Invoke</code>
30363055
* </p>
30373056
* </li>
3057+
* <li>
3058+
* <p>
3059+
* <code>Compute</code>
3060+
* </p>
3061+
* </li>
30383062
* </ul>
30393063
* @public
30403064
*/

codegen/sdk-codegen/aws-models/codepipeline.json

+12-6
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@
11551155
"category": {
11561156
"target": "com.amazonaws.codepipeline#ActionCategory",
11571157
"traits": {
1158-
"smithy.api#documentation": "<p>A category defines what kind of action can be taken in the stage, and constrains\n the provider type for the action. Valid categories are limited to one of the following\n values. </p>\n <ul>\n <li>\n <p>Source</p>\n </li>\n <li>\n <p>Build</p>\n </li>\n <li>\n <p>Test</p>\n </li>\n <li>\n <p>Deploy</p>\n </li>\n <li>\n <p>Invoke</p>\n </li>\n <li>\n <p>Approval</p>\n </li>\n </ul>",
1158+
"smithy.api#documentation": "<p>A category defines what kind of action can be taken in the stage, and constrains\n the provider type for the action. Valid categories are limited to one of the following\n values. </p>\n <ul>\n <li>\n <p>Source</p>\n </li>\n <li>\n <p>Build</p>\n </li>\n <li>\n <p>Test</p>\n </li>\n <li>\n <p>Deploy</p>\n </li>\n <li>\n <p>Invoke</p>\n </li>\n <li>\n <p>Approval</p>\n </li>\n <li>\n <p>Compute</p>\n </li>\n </ul>",
11591159
"smithy.api#required": {}
11601160
}
11611161
},
@@ -2955,7 +2955,7 @@
29552955
}
29562956
},
29572957
"traits": {
2958-
"smithy.api#documentation": "<p>The condition for the stage. A condition is made up of the rules and the result for\n the condition.</p>"
2958+
"smithy.api#documentation": "<p>The condition for the stage. A condition is made up of the rules and the result for\n the condition. For more information about conditions, see <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html\">Stage conditions</a>.\n For more information about rules, see the <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/rule-reference.html\">CodePipeline rule\n reference</a>.</p>"
29592959
}
29602960
},
29612961
"com.amazonaws.codepipeline#ConditionExecution": {
@@ -4024,7 +4024,7 @@
40244024
"category": {
40254025
"target": "com.amazonaws.codepipeline#ActionCategory",
40264026
"traits": {
4027-
"smithy.api#documentation": "<p>Defines what kind of action can be taken in the stage. The following are the valid\n values:</p>\n <ul>\n <li>\n <p>\n <code>Source</code>\n </p>\n </li>\n <li>\n <p>\n <code>Build</code>\n </p>\n </li>\n <li>\n <p>\n <code>Test</code>\n </p>\n </li>\n <li>\n <p>\n <code>Deploy</code>\n </p>\n </li>\n <li>\n <p>\n <code>Approval</code>\n </p>\n </li>\n <li>\n <p>\n <code>Invoke</code>\n </p>\n </li>\n </ul>",
4027+
"smithy.api#documentation": "<p>Defines what kind of action can be taken in the stage. The following are the valid\n values:</p>\n <ul>\n <li>\n <p>\n <code>Source</code>\n </p>\n </li>\n <li>\n <p>\n <code>Build</code>\n </p>\n </li>\n <li>\n <p>\n <code>Test</code>\n </p>\n </li>\n <li>\n <p>\n <code>Deploy</code>\n </p>\n </li>\n <li>\n <p>\n <code>Approval</code>\n </p>\n </li>\n <li>\n <p>\n <code>Invoke</code>\n </p>\n </li>\n <li>\n <p>\n <code>Compute</code>\n </p>\n </li>\n </ul>",
40284028
"smithy.api#required": {}
40294029
}
40304030
},
@@ -5611,7 +5611,7 @@
56115611
}
56125612
],
56135613
"traits": {
5614-
"smithy.api#documentation": "<p>Lists the rules for the condition.</p>"
5614+
"smithy.api#documentation": "<p>Lists the rules for the condition. For more information about conditions, see <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html\">Stage\n conditions</a>. For more information about rules, see the <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/rule-reference.html\">CodePipeline rule reference</a>.</p>"
56155615
}
56165616
},
56175617
"com.amazonaws.codepipeline#ListRuleTypesInput": {
@@ -8057,7 +8057,7 @@
80578057
"name": {
80588058
"target": "com.amazonaws.codepipeline#RuleName",
80598059
"traits": {
8060-
"smithy.api#documentation": "<p>The name of the rule that is created for the condition, such as\n CheckAllResults.</p>",
8060+
"smithy.api#documentation": "<p>The name of the rule that is created for the condition, such as\n <code>VariableCheck</code>.</p>",
80618061
"smithy.api#required": {}
80628062
}
80638063
},
@@ -8074,6 +8074,12 @@
80748074
"smithy.api#documentation": "<p>The action configuration fields for the rule.</p>"
80758075
}
80768076
},
8077+
"commands": {
8078+
"target": "com.amazonaws.codepipeline#CommandList",
8079+
"traits": {
8080+
"smithy.api#documentation": "<p>The shell commands to run with your commands rule in CodePipeline. All commands\n are supported except multi-line formats. While CodeBuild logs and permissions\n are used, you do not need to create any resources in CodeBuild.</p>\n <note>\n <p>Using compute time for this action will incur separate charges in CodeBuild.</p>\n </note>"
8081+
}
8082+
},
80778083
"inputArtifacts": {
80788084
"target": "com.amazonaws.codepipeline#InputArtifactList",
80798085
"traits": {
@@ -8100,7 +8106,7 @@
81008106
}
81018107
},
81028108
"traits": {
8103-
"smithy.api#documentation": "<p>Represents information about the rule to be created for an associated condition. An\n example would be creating a new rule for an entry condition, such as a rule that checks\n for a test result before allowing the run to enter the deployment stage.</p>"
8109+
"smithy.api#documentation": "<p>Represents information about the rule to be created for an associated condition. An\n example would be creating a new rule for an entry condition, such as a rule that checks\n for a test result before allowing the run to enter the deployment stage. For more\n information about conditions, see <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html\">Stage conditions</a>.\n For more information about rules, see the <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/rule-reference.html\">CodePipeline rule\n reference</a>.</p>"
81048110
}
81058111
},
81068112
"com.amazonaws.codepipeline#RuleDeclarationList": {

0 commit comments

Comments
 (0)