Skip to content

Commit

Permalink
feat(client-codepipeline): AWS CodePipeline V2 type pipelines now sup…
Browse files Browse the repository at this point in the history
…port Managed Compute Rule.
  • Loading branch information
awstools committed Dec 17, 2024
1 parent 00737e5 commit 9287267
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 10 deletions.
18 changes: 18 additions & 0 deletions clients/client-codepipeline/src/commands/CreatePipelineCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* configuration: { // RuleConfigurationMap
* "<keys>": "STRING_VALUE",
* },
* commands: [
* "STRING_VALUE",
* ],
* inputArtifacts: [
* {
* name: "STRING_VALUE", // required
Expand Down Expand Up @@ -159,6 +162,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* configuration: {
* "<keys>": "STRING_VALUE",
* },
* commands: [
* "STRING_VALUE",
* ],
* inputArtifacts: [
* {
* name: "STRING_VALUE", // required
Expand Down Expand Up @@ -188,6 +194,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* configuration: {
* "<keys>": "STRING_VALUE",
* },
* commands: [
* "STRING_VALUE",
* ],
* inputArtifacts: [
* {
* name: "STRING_VALUE", // required
Expand Down Expand Up @@ -371,6 +380,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* // configuration: { // RuleConfigurationMap
* // "<keys>": "STRING_VALUE",
* // },
* // commands: [
* // "STRING_VALUE",
* // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
Expand Down Expand Up @@ -400,6 +412,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* // configuration: {
* // "<keys>": "STRING_VALUE",
* // },
* // commands: [
* // "STRING_VALUE",
* // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
Expand Down Expand Up @@ -429,6 +444,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* // configuration: {
* // "<keys>": "STRING_VALUE",
* // },
* // commands: [
* // "STRING_VALUE",
* // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
* // configuration: { // RuleConfigurationMap
* // "<keys>": "STRING_VALUE",
* // },
* // commands: [
* // "STRING_VALUE",
* // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
Expand Down Expand Up @@ -161,6 +164,9 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
* // configuration: {
* // "<keys>": "STRING_VALUE",
* // },
* // commands: [
* // "STRING_VALUE",
* // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
Expand Down Expand Up @@ -190,6 +196,9 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
* // configuration: {
* // "<keys>": "STRING_VALUE",
* // },
* // commands: [
* // "STRING_VALUE",
* // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export interface ListRuleTypesCommandInput extends ListRuleTypesInput {}
export interface ListRuleTypesCommandOutput extends ListRuleTypesOutput, __MetadataBearer {}

/**
* <p>Lists the rules for the condition.</p>
* <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
* 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>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
18 changes: 18 additions & 0 deletions clients/client-codepipeline/src/commands/UpdatePipelineCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* configuration: { // RuleConfigurationMap
* "<keys>": "STRING_VALUE",
* },
* commands: [
* "STRING_VALUE",
* ],
* inputArtifacts: [
* {
* name: "STRING_VALUE", // required
Expand Down Expand Up @@ -156,6 +159,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* configuration: {
* "<keys>": "STRING_VALUE",
* },
* commands: [
* "STRING_VALUE",
* ],
* inputArtifacts: [
* {
* name: "STRING_VALUE", // required
Expand Down Expand Up @@ -185,6 +191,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* configuration: {
* "<keys>": "STRING_VALUE",
* },
* commands: [
* "STRING_VALUE",
* ],
* inputArtifacts: [
* {
* name: "STRING_VALUE", // required
Expand Down Expand Up @@ -362,6 +371,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* // configuration: { // RuleConfigurationMap
* // "<keys>": "STRING_VALUE",
* // },
* // commands: [
* // "STRING_VALUE",
* // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
Expand Down Expand Up @@ -391,6 +403,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* // configuration: {
* // "<keys>": "STRING_VALUE",
* // },
* // commands: [
* // "STRING_VALUE",
* // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
Expand Down Expand Up @@ -420,6 +435,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* // configuration: {
* // "<keys>": "STRING_VALUE",
* // },
* // commands: [
* // "STRING_VALUE",
* // ],
* // inputArtifacts: [
* // {
* // name: "STRING_VALUE", // required
Expand Down
30 changes: 27 additions & 3 deletions clients/client-codepipeline/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ export interface ActionTypeId {
* <li>
* <p>Approval</p>
* </li>
* <li>
* <p>Compute</p>
* </li>
* </ul>
* @public
*/
Expand Down Expand Up @@ -1861,13 +1864,16 @@ export interface RuleTypeId {
/**
* <p>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.</p>
* for a test result before allowing the run to enter the deployment stage. For more
* information about conditions, see <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html">Stage 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>
* @public
*/
export interface RuleDeclaration {
/**
* <p>The name of the rule that is created for the condition, such as
* CheckAllResults.</p>
* <code>VariableCheck</code>.</p>
* @public
*/
name: string | undefined;
Expand All @@ -1885,6 +1891,17 @@ export interface RuleDeclaration {
*/
configuration?: Record<string, string> | undefined;

/**
* <p>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.</p>
* <note>
* <p>Using compute time for this action will incur separate charges in CodeBuild.</p>
* </note>
* @public
*/
commands?: string[] | undefined;

/**
* <p>The input artifacts fields for the rule, such as specifying an input file for the
* rule.</p>
Expand Down Expand Up @@ -1913,7 +1930,9 @@ export interface RuleDeclaration {

/**
* <p>The condition for the stage. A condition is made up of the rules and the result for
* the condition.</p>
* the condition. For more information about conditions, see <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html">Stage 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>
* @public
*/
export interface Condition {
Expand Down Expand Up @@ -3035,6 +3054,11 @@ export interface GetActionTypeInput {
* <code>Invoke</code>
* </p>
* </li>
* <li>
* <p>
* <code>Compute</code>
* </p>
* </li>
* </ul>
* @public
*/
Expand Down
18 changes: 12 additions & 6 deletions codegen/sdk-codegen/aws-models/codepipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@
"category": {
"target": "com.amazonaws.codepipeline#ActionCategory",
"traits": {
"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>",
"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>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -2955,7 +2955,7 @@
}
},
"traits": {
"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>"
"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>"
}
},
"com.amazonaws.codepipeline#ConditionExecution": {
Expand Down Expand Up @@ -4024,7 +4024,7 @@
"category": {
"target": "com.amazonaws.codepipeline#ActionCategory",
"traits": {
"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>",
"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>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -5611,7 +5611,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Lists the rules for the condition.</p>"
"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>"
}
},
"com.amazonaws.codepipeline#ListRuleTypesInput": {
Expand Down Expand Up @@ -8057,7 +8057,7 @@
"name": {
"target": "com.amazonaws.codepipeline#RuleName",
"traits": {
"smithy.api#documentation": "<p>The name of the rule that is created for the condition, such as\n CheckAllResults.</p>",
"smithy.api#documentation": "<p>The name of the rule that is created for the condition, such as\n <code>VariableCheck</code>.</p>",
"smithy.api#required": {}
}
},
Expand All @@ -8074,6 +8074,12 @@
"smithy.api#documentation": "<p>The action configuration fields for the rule.</p>"
}
},
"commands": {
"target": "com.amazonaws.codepipeline#CommandList",
"traits": {
"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>"
}
},
"inputArtifacts": {
"target": "com.amazonaws.codepipeline#InputArtifactList",
"traits": {
Expand All @@ -8100,7 +8106,7 @@
}
},
"traits": {
"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>"
"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>"
}
},
"com.amazonaws.codepipeline#RuleDeclarationList": {
Expand Down

0 comments on commit 9287267

Please sign in to comment.