From 92872670acdf999b3b2cb0d3f1abf5578e2ec21e Mon Sep 17 00:00:00 2001
From: awstools
Date: Tue, 17 Dec 2024 19:11:28 +0000
Subject: [PATCH] feat(client-codepipeline): AWS CodePipeline V2 type pipelines
now support Managed Compute Rule.
---
.../src/commands/CreatePipelineCommand.ts | 18 +++++++++++
.../src/commands/GetPipelineCommand.ts | 9 ++++++
.../src/commands/ListRuleTypesCommand.ts | 3 +-
.../src/commands/UpdatePipelineCommand.ts | 18 +++++++++++
.../src/models/models_0.ts | 30 +++++++++++++++++--
.../sdk-codegen/aws-models/codepipeline.json | 18 +++++++----
6 files changed, 86 insertions(+), 10 deletions(-)
diff --git a/clients/client-codepipeline/src/commands/CreatePipelineCommand.ts b/clients/client-codepipeline/src/commands/CreatePipelineCommand.ts
index 2fb13a2bbe49..f0bf8e560d46 100644
--- a/clients/client-codepipeline/src/commands/CreatePipelineCommand.ts
+++ b/clients/client-codepipeline/src/commands/CreatePipelineCommand.ts
@@ -130,6 +130,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* configuration: { // RuleConfigurationMap
* "": "STRING_VALUE",
* },
+ * commands: [
+ * "STRING_VALUE",
+ * ],
* inputArtifacts: [
* {
* name: "STRING_VALUE", // required
@@ -159,6 +162,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* configuration: {
* "": "STRING_VALUE",
* },
+ * commands: [
+ * "STRING_VALUE",
+ * ],
* inputArtifacts: [
* {
* name: "STRING_VALUE", // required
@@ -188,6 +194,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* configuration: {
* "": "STRING_VALUE",
* },
+ * commands: [
+ * "STRING_VALUE",
+ * ],
* inputArtifacts: [
* {
* name: "STRING_VALUE", // required
@@ -371,6 +380,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* // configuration: { // RuleConfigurationMap
* // "": "STRING_VALUE",
* // },
+ * // commands: [
+ * // "STRING_VALUE",
+ * // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
@@ -400,6 +412,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* // configuration: {
* // "": "STRING_VALUE",
* // },
+ * // commands: [
+ * // "STRING_VALUE",
+ * // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
@@ -429,6 +444,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* // configuration: {
* // "": "STRING_VALUE",
* // },
+ * // commands: [
+ * // "STRING_VALUE",
+ * // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
diff --git a/clients/client-codepipeline/src/commands/GetPipelineCommand.ts b/clients/client-codepipeline/src/commands/GetPipelineCommand.ts
index 7b613628473a..1b845fc95772 100644
--- a/clients/client-codepipeline/src/commands/GetPipelineCommand.ts
+++ b/clients/client-codepipeline/src/commands/GetPipelineCommand.ts
@@ -132,6 +132,9 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
* // configuration: { // RuleConfigurationMap
* // "": "STRING_VALUE",
* // },
+ * // commands: [
+ * // "STRING_VALUE",
+ * // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
@@ -161,6 +164,9 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
* // configuration: {
* // "": "STRING_VALUE",
* // },
+ * // commands: [
+ * // "STRING_VALUE",
+ * // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
@@ -190,6 +196,9 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
* // configuration: {
* // "": "STRING_VALUE",
* // },
+ * // commands: [
+ * // "STRING_VALUE",
+ * // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
diff --git a/clients/client-codepipeline/src/commands/ListRuleTypesCommand.ts b/clients/client-codepipeline/src/commands/ListRuleTypesCommand.ts
index 0cf1ab4d1c8e..58a49a1acc29 100644
--- a/clients/client-codepipeline/src/commands/ListRuleTypesCommand.ts
+++ b/clients/client-codepipeline/src/commands/ListRuleTypesCommand.ts
@@ -28,7 +28,8 @@ export interface ListRuleTypesCommandInput extends ListRuleTypesInput {}
export interface ListRuleTypesCommandOutput extends ListRuleTypesOutput, __MetadataBearer {}
/**
- * Lists the rules for the condition.
+ * Lists the rules for the condition. For more information about conditions, see Stage
+ * conditions. For more information about rules, see the CodePipeline rule reference.
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
diff --git a/clients/client-codepipeline/src/commands/UpdatePipelineCommand.ts b/clients/client-codepipeline/src/commands/UpdatePipelineCommand.ts
index 523e68e4b076..a12e61501819 100644
--- a/clients/client-codepipeline/src/commands/UpdatePipelineCommand.ts
+++ b/clients/client-codepipeline/src/commands/UpdatePipelineCommand.ts
@@ -127,6 +127,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* configuration: { // RuleConfigurationMap
* "": "STRING_VALUE",
* },
+ * commands: [
+ * "STRING_VALUE",
+ * ],
* inputArtifacts: [
* {
* name: "STRING_VALUE", // required
@@ -156,6 +159,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* configuration: {
* "": "STRING_VALUE",
* },
+ * commands: [
+ * "STRING_VALUE",
+ * ],
* inputArtifacts: [
* {
* name: "STRING_VALUE", // required
@@ -185,6 +191,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* configuration: {
* "": "STRING_VALUE",
* },
+ * commands: [
+ * "STRING_VALUE",
+ * ],
* inputArtifacts: [
* {
* name: "STRING_VALUE", // required
@@ -362,6 +371,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* // configuration: { // RuleConfigurationMap
* // "": "STRING_VALUE",
* // },
+ * // commands: [
+ * // "STRING_VALUE",
+ * // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
@@ -391,6 +403,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* // configuration: {
* // "": "STRING_VALUE",
* // },
+ * // commands: [
+ * // "STRING_VALUE",
+ * // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
@@ -420,6 +435,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* // configuration: {
* // "": "STRING_VALUE",
* // },
+ * // commands: [
+ * // "STRING_VALUE",
+ * // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
diff --git a/clients/client-codepipeline/src/models/models_0.ts b/clients/client-codepipeline/src/models/models_0.ts
index 2057935f3cba..c2b964eb486d 100644
--- a/clients/client-codepipeline/src/models/models_0.ts
+++ b/clients/client-codepipeline/src/models/models_0.ts
@@ -342,6 +342,9 @@ export interface ActionTypeId {
*
* Approval
*
+ *
+ * Compute
+ *
*
* @public
*/
@@ -1861,13 +1864,16 @@ export interface RuleTypeId {
/**
* Represents information about the rule to be created for an associated condition. An
* example would be creating a new rule for an entry condition, such as a rule that checks
- * for a test result before allowing the run to enter the deployment stage.
+ * for a test result before allowing the run to enter the deployment stage. For more
+ * information about conditions, see Stage conditions.
+ * For more information about rules, see the CodePipeline rule
+ * reference.
* @public
*/
export interface RuleDeclaration {
/**
* The name of the rule that is created for the condition, such as
- * CheckAllResults.
+ * VariableCheck
.
* @public
*/
name: string | undefined;
@@ -1885,6 +1891,17 @@ export interface RuleDeclaration {
*/
configuration?: Record | undefined;
+ /**
+ * The shell commands to run with your commands rule in CodePipeline. All commands
+ * are supported except multi-line formats. While CodeBuild logs and permissions
+ * are used, you do not need to create any resources in CodeBuild.
+ *
+ * Using compute time for this action will incur separate charges in CodeBuild.
+ *
+ * @public
+ */
+ commands?: string[] | undefined;
+
/**
* The input artifacts fields for the rule, such as specifying an input file for the
* rule.
@@ -1913,7 +1930,9 @@ export interface RuleDeclaration {
/**
* The condition for the stage. A condition is made up of the rules and the result for
- * the condition.
+ * the condition. For more information about conditions, see Stage conditions.
+ * For more information about rules, see the CodePipeline rule
+ * reference.
* @public
*/
export interface Condition {
@@ -3035,6 +3054,11 @@ export interface GetActionTypeInput {
* Invoke
*
*
+ *
+ *
+ * Compute
+ *
+ *
*
* @public
*/
diff --git a/codegen/sdk-codegen/aws-models/codepipeline.json b/codegen/sdk-codegen/aws-models/codepipeline.json
index 485088bb11a7..dc6ca4b630d3 100644
--- a/codegen/sdk-codegen/aws-models/codepipeline.json
+++ b/codegen/sdk-codegen/aws-models/codepipeline.json
@@ -1155,7 +1155,7 @@
"category": {
"target": "com.amazonaws.codepipeline#ActionCategory",
"traits": {
- "smithy.api#documentation": "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.
\n \n - \n
Source
\n \n - \n
Build
\n \n - \n
Test
\n \n - \n
Deploy
\n \n - \n
Invoke
\n \n - \n
Approval
\n \n
",
+ "smithy.api#documentation": "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.
\n \n - \n
Source
\n \n - \n
Build
\n \n - \n
Test
\n \n - \n
Deploy
\n \n - \n
Invoke
\n \n - \n
Approval
\n \n - \n
Compute
\n \n
",
"smithy.api#required": {}
}
},
@@ -2955,7 +2955,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The condition for the stage. A condition is made up of the rules and the result for\n the condition.
"
+ "smithy.api#documentation": "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 Stage conditions.\n For more information about rules, see the CodePipeline rule\n reference.
"
}
},
"com.amazonaws.codepipeline#ConditionExecution": {
@@ -4024,7 +4024,7 @@
"category": {
"target": "com.amazonaws.codepipeline#ActionCategory",
"traits": {
- "smithy.api#documentation": "Defines what kind of action can be taken in the stage. The following are the valid\n values:
\n \n - \n
\n Source
\n
\n \n - \n
\n Build
\n
\n \n - \n
\n Test
\n
\n \n - \n
\n Deploy
\n
\n \n - \n
\n Approval
\n
\n \n - \n
\n Invoke
\n
\n \n
",
+ "smithy.api#documentation": "Defines what kind of action can be taken in the stage. The following are the valid\n values:
\n \n - \n
\n Source
\n
\n \n - \n
\n Build
\n
\n \n - \n
\n Test
\n
\n \n - \n
\n Deploy
\n
\n \n - \n
\n Approval
\n
\n \n - \n
\n Invoke
\n
\n \n - \n
\n Compute
\n
\n \n
",
"smithy.api#required": {}
}
},
@@ -5611,7 +5611,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists the rules for the condition.
"
+ "smithy.api#documentation": "Lists the rules for the condition. For more information about conditions, see Stage\n conditions. For more information about rules, see the CodePipeline rule reference.
"
}
},
"com.amazonaws.codepipeline#ListRuleTypesInput": {
@@ -8057,7 +8057,7 @@
"name": {
"target": "com.amazonaws.codepipeline#RuleName",
"traits": {
- "smithy.api#documentation": "The name of the rule that is created for the condition, such as\n CheckAllResults.
",
+ "smithy.api#documentation": "The name of the rule that is created for the condition, such as\n VariableCheck
.
",
"smithy.api#required": {}
}
},
@@ -8074,6 +8074,12 @@
"smithy.api#documentation": "The action configuration fields for the rule.
"
}
},
+ "commands": {
+ "target": "com.amazonaws.codepipeline#CommandList",
+ "traits": {
+ "smithy.api#documentation": "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.
\n \n Using compute time for this action will incur separate charges in CodeBuild.
\n "
+ }
+ },
"inputArtifacts": {
"target": "com.amazonaws.codepipeline#InputArtifactList",
"traits": {
@@ -8100,7 +8106,7 @@
}
},
"traits": {
- "smithy.api#documentation": "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.
"
+ "smithy.api#documentation": "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 Stage conditions.\n For more information about rules, see the CodePipeline rule\n reference.
"
}
},
"com.amazonaws.codepipeline#RuleDeclarationList": {