Skip to content

Commit

Permalink
feat(client-codepipeline): AWS CodePipeline introduces Commands actio…
Browse files Browse the repository at this point in the history
…n that enables you to easily run shell commands as part of your pipeline execution.
  • Loading branch information
awstools committed Oct 3, 2024
1 parent a29a5e4 commit 4435e7f
Show file tree
Hide file tree
Showing 6 changed files with 162 additions and 0 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 @@ -85,16 +85,25 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* configuration: { // ActionConfigurationMap
* "<keys>": "STRING_VALUE",
* },
* commands: [ // CommandList
* "STRING_VALUE",
* ],
* outputArtifacts: [ // OutputArtifactList
* { // OutputArtifact
* name: "STRING_VALUE", // required
* files: [ // FilePathList
* "STRING_VALUE",
* ],
* },
* ],
* inputArtifacts: [ // InputArtifactList
* { // InputArtifact
* name: "STRING_VALUE", // required
* },
* ],
* outputVariables: [ // OutputVariableList
* "STRING_VALUE",
* ],
* roleArn: "STRING_VALUE",
* region: "STRING_VALUE",
* namespace: "STRING_VALUE",
Expand Down Expand Up @@ -314,16 +323,25 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* // configuration: { // ActionConfigurationMap
* // "<keys>": "STRING_VALUE",
* // },
* // commands: [ // CommandList
* // "STRING_VALUE",
* // ],
* // outputArtifacts: [ // OutputArtifactList
* // { // OutputArtifact
* // name: "STRING_VALUE", // required
* // files: [ // FilePathList
* // "STRING_VALUE",
* // ],
* // },
* // ],
* // inputArtifacts: [ // InputArtifactList
* // { // InputArtifact
* // name: "STRING_VALUE", // required
* // },
* // ],
* // outputVariables: [ // OutputVariableList
* // "STRING_VALUE",
* // ],
* // roleArn: "STRING_VALUE",
* // region: "STRING_VALUE",
* // namespace: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,25 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
* // configuration: { // ActionConfigurationMap
* // "<keys>": "STRING_VALUE",
* // },
* // commands: [ // CommandList
* // "STRING_VALUE",
* // ],
* // outputArtifacts: [ // OutputArtifactList
* // { // OutputArtifact
* // name: "STRING_VALUE", // required
* // files: [ // FilePathList
* // "STRING_VALUE",
* // ],
* // },
* // ],
* // inputArtifacts: [ // InputArtifactList
* // { // InputArtifact
* // name: "STRING_VALUE", // required
* // },
* // ],
* // outputVariables: [ // OutputVariableList
* // "STRING_VALUE",
* // ],
* // roleArn: "STRING_VALUE",
* // region: "STRING_VALUE",
* // namespace: "STRING_VALUE",
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 @@ -82,16 +82,25 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* configuration: { // ActionConfigurationMap
* "<keys>": "STRING_VALUE",
* },
* commands: [ // CommandList
* "STRING_VALUE",
* ],
* outputArtifacts: [ // OutputArtifactList
* { // OutputArtifact
* name: "STRING_VALUE", // required
* files: [ // FilePathList
* "STRING_VALUE",
* ],
* },
* ],
* inputArtifacts: [ // InputArtifactList
* { // InputArtifact
* name: "STRING_VALUE", // required
* },
* ],
* outputVariables: [ // OutputVariableList
* "STRING_VALUE",
* ],
* roleArn: "STRING_VALUE",
* region: "STRING_VALUE",
* namespace: "STRING_VALUE",
Expand Down Expand Up @@ -305,16 +314,25 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* // configuration: { // ActionConfigurationMap
* // "<keys>": "STRING_VALUE",
* // },
* // commands: [ // CommandList
* // "STRING_VALUE",
* // ],
* // outputArtifacts: [ // OutputArtifactList
* // { // OutputArtifact
* // name: "STRING_VALUE", // required
* // files: [ // FilePathList
* // "STRING_VALUE",
* // ],
* // },
* // ],
* // inputArtifacts: [ // InputArtifactList
* // { // InputArtifact
* // name: "STRING_VALUE", // required
* // },
* // ],
* // outputVariables: [ // OutputVariableList
* // "STRING_VALUE",
* // ],
* // roleArn: "STRING_VALUE",
* // region: "STRING_VALUE",
* // namespace: "STRING_VALUE",
Expand Down
24 changes: 24 additions & 0 deletions clients/client-codepipeline/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,12 @@ export interface OutputArtifact {
* @public
*/
name: string | undefined;

/**
* <p>The files that you want to associate with the output artifact that will be exported from the compute action.</p>
* @public
*/
files?: string[];
}

/**
Expand Down Expand Up @@ -452,6 +458,18 @@ export interface ActionDeclaration {
*/
configuration?: Record<string, string>;

/**
* <p>The shell commands to run with your compute action 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[];

/**
* <p>The name or ID of the result of the action declaration, such as a test or build
* artifact.</p>
Expand All @@ -466,6 +484,12 @@ export interface ActionDeclaration {
*/
inputArtifacts?: InputArtifact[];

/**
* <p>The list of variables that are to be exported from the compute action. This is specifically CodeBuild environment variables as used for that action.</p>
* @public
*/
outputVariables?: string[];

/**
* <p>The ARN of the IAM service role that performs the declared action. This is assumed
* through the roleArn for the pipeline.</p>
Expand Down
12 changes: 12 additions & 0 deletions clients/client-codepipeline/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2514,6 +2514,8 @@ const se_ActionRevision = (input: ActionRevision, context: __SerdeContext): any

// se_BlockerDeclaration omitted.

// se_CommandList omitted.

// se_Condition omitted.

// se_ConditionList omitted.
Expand Down Expand Up @@ -2564,6 +2566,8 @@ const se_CurrentRevision = (input: CurrentRevision, context: __SerdeContext): an

// se_FailureDetails omitted.

// se_FilePathList omitted.

// se_GetActionTypeInput omitted.

// se_GetJobDetailsInput omitted.
Expand Down Expand Up @@ -2630,6 +2634,8 @@ const se_CurrentRevision = (input: CurrentRevision, context: __SerdeContext): an

// se_OutputArtifactList omitted.

// se_OutputVariableList omitted.

// se_OutputVariablesMap omitted.

// se_OverrideStageConditionInput omitted.
Expand Down Expand Up @@ -2971,6 +2977,8 @@ const de_ArtifactRevisionList = (output: any, context: __SerdeContext): Artifact

// de_BlockerDeclaration omitted.

// de_CommandList omitted.

// de_ConcurrentModificationException omitted.

// de_ConcurrentPipelineExecutionsLimitExceededException omitted.
Expand Down Expand Up @@ -3044,6 +3052,8 @@ const de_CreatePipelineOutput = (output: any, context: __SerdeContext): CreatePi

// de_FailureConditions omitted.

// de_FilePathList omitted.

// de_GetActionTypeOutput omitted.

// de_GetJobDetailsOutput omitted.
Expand Down Expand Up @@ -3231,6 +3241,8 @@ const de_ListWebhooksOutput = (output: any, context: __SerdeContext): ListWebhoo

// de_OutputArtifactList omitted.

// de_OutputVariableList omitted.

// de_OutputVariablesMap omitted.

// de_OutputVariablesSizeExceededException omitted.
Expand Down
81 changes: 81 additions & 0 deletions codegen/sdk-codegen/aws-models/codepipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,12 @@
"smithy.api#documentation": "<p>The action's configuration. These are key-value pairs that specify input values for\n an action. For more information, see <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html#action-requirements\">Action Structure Requirements in CodePipeline</a>. For the list of\n configuration properties for the CloudFormation action type in CodePipeline, see <a href=\"https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/continuous-delivery-codepipeline-action-reference.html\">Configuration Properties Reference</a> in the <i>CloudFormation\n User Guide</i>. For template snippets with examples, see <a href=\"https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/continuous-delivery-codepipeline-parameter-override-functions.html\">Using Parameter Override Functions with CodePipeline Pipelines</a> in the\n <i>CloudFormation User Guide</i>.</p>\n <p>The values can be represented in either JSON or YAML format. For example, the JSON\n configuration item format is as follows: </p>\n <p>\n <i>JSON:</i>\n </p>\n <p>\n <code>\"Configuration\" : { Key : Value },</code>\n </p>"
}
},
"commands": {
"target": "com.amazonaws.codepipeline#CommandList",
"traits": {
"smithy.api#documentation": "<p>The shell commands to run with your compute action in CodePipeline. All commands are\n supported except multi-line formats. While CodeBuild logs and permissions are used, you\n 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\n CodeBuild.</p>\n </note>"
}
},
"outputArtifacts": {
"target": "com.amazonaws.codepipeline#OutputArtifactList",
"traits": {
Expand All @@ -458,6 +464,12 @@
"smithy.api#documentation": "<p>The name or ID of the artifact consumed by the action, such as a test or build\n artifact.</p>"
}
},
"outputVariables": {
"target": "com.amazonaws.codepipeline#OutputVariableList",
"traits": {
"smithy.api#documentation": "<p>The list of variables that are to be exported from the compute action. This is specifically CodeBuild environment variables as used for that action.</p>"
}
},
"roleArn": {
"target": "com.amazonaws.codepipeline#RoleArn",
"traits": {
Expand Down Expand Up @@ -2863,6 +2875,27 @@
}
}
},
"com.amazonaws.codepipeline#Command": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 1000
}
}
},
"com.amazonaws.codepipeline#CommandList": {
"type": "list",
"member": {
"target": "com.amazonaws.codepipeline#Command"
},
"traits": {
"smithy.api#length": {
"min": 1,
"max": 50
}
}
},
"com.amazonaws.codepipeline#ConcurrentModificationException": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -3920,6 +3953,27 @@
}
}
},
"com.amazonaws.codepipeline#FilePath": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 128
}
}
},
"com.amazonaws.codepipeline#FilePathList": {
"type": "list",
"member": {
"target": "com.amazonaws.codepipeline#FilePath"
},
"traits": {
"smithy.api#length": {
"min": 1,
"max": 10
}
}
},
"com.amazonaws.codepipeline#GetActionType": {
"type": "operation",
"input": {
Expand Down Expand Up @@ -5894,6 +5948,12 @@
"smithy.api#documentation": "<p>The name of the output of an artifact, such as \"My App\".</p>\n <p>The input artifact of an action must exactly match the output artifact declared in\n a preceding action, but the input artifact does not have to be the next action in strict\n sequence from the action that provided the output artifact. Actions in parallel can\n declare different output artifacts, which are in turn consumed by different following\n actions.</p>\n <p>Output artifact names must be unique within a pipeline.</p>",
"smithy.api#required": {}
}
},
"files": {
"target": "com.amazonaws.codepipeline#FilePathList",
"traits": {
"smithy.api#documentation": "<p>The files that you want to associate with the output artifact that will be exported from the compute action.</p>"
}
}
},
"traits": {
Expand All @@ -5906,6 +5966,27 @@
"target": "com.amazonaws.codepipeline#OutputArtifact"
}
},
"com.amazonaws.codepipeline#OutputVariable": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 128
}
}
},
"com.amazonaws.codepipeline#OutputVariableList": {
"type": "list",
"member": {
"target": "com.amazonaws.codepipeline#OutputVariable"
},
"traits": {
"smithy.api#length": {
"min": 1,
"max": 15
}
}
},
"com.amazonaws.codepipeline#OutputVariablesKey": {
"type": "string",
"traits": {
Expand Down

0 comments on commit 4435e7f

Please sign in to comment.