Skip to content

Commit 4435e7f

Browse files
author
awstools
committed
feat(client-codepipeline): AWS CodePipeline introduces Commands action that enables you to easily run shell commands as part of your pipeline execution.
1 parent a29a5e4 commit 4435e7f

File tree

6 files changed

+162
-0
lines changed

6 files changed

+162
-0
lines changed

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

+18
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,25 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
8585
* configuration: { // ActionConfigurationMap
8686
* "<keys>": "STRING_VALUE",
8787
* },
88+
* commands: [ // CommandList
89+
* "STRING_VALUE",
90+
* ],
8891
* outputArtifacts: [ // OutputArtifactList
8992
* { // OutputArtifact
9093
* name: "STRING_VALUE", // required
94+
* files: [ // FilePathList
95+
* "STRING_VALUE",
96+
* ],
9197
* },
9298
* ],
9399
* inputArtifacts: [ // InputArtifactList
94100
* { // InputArtifact
95101
* name: "STRING_VALUE", // required
96102
* },
97103
* ],
104+
* outputVariables: [ // OutputVariableList
105+
* "STRING_VALUE",
106+
* ],
98107
* roleArn: "STRING_VALUE",
99108
* region: "STRING_VALUE",
100109
* namespace: "STRING_VALUE",
@@ -314,16 +323,25 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
314323
* // configuration: { // ActionConfigurationMap
315324
* // "<keys>": "STRING_VALUE",
316325
* // },
326+
* // commands: [ // CommandList
327+
* // "STRING_VALUE",
328+
* // ],
317329
* // outputArtifacts: [ // OutputArtifactList
318330
* // { // OutputArtifact
319331
* // name: "STRING_VALUE", // required
332+
* // files: [ // FilePathList
333+
* // "STRING_VALUE",
334+
* // ],
320335
* // },
321336
* // ],
322337
* // inputArtifacts: [ // InputArtifactList
323338
* // { // InputArtifact
324339
* // name: "STRING_VALUE", // required
325340
* // },
326341
* // ],
342+
* // outputVariables: [ // OutputVariableList
343+
* // "STRING_VALUE",
344+
* // ],
327345
* // roleArn: "STRING_VALUE",
328346
* // region: "STRING_VALUE",
329347
* // namespace: "STRING_VALUE",

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

+9
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,25 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
8787
* // configuration: { // ActionConfigurationMap
8888
* // "<keys>": "STRING_VALUE",
8989
* // },
90+
* // commands: [ // CommandList
91+
* // "STRING_VALUE",
92+
* // ],
9093
* // outputArtifacts: [ // OutputArtifactList
9194
* // { // OutputArtifact
9295
* // name: "STRING_VALUE", // required
96+
* // files: [ // FilePathList
97+
* // "STRING_VALUE",
98+
* // ],
9399
* // },
94100
* // ],
95101
* // inputArtifacts: [ // InputArtifactList
96102
* // { // InputArtifact
97103
* // name: "STRING_VALUE", // required
98104
* // },
99105
* // ],
106+
* // outputVariables: [ // OutputVariableList
107+
* // "STRING_VALUE",
108+
* // ],
100109
* // roleArn: "STRING_VALUE",
101110
* // region: "STRING_VALUE",
102111
* // namespace: "STRING_VALUE",

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

+18
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,25 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
8282
* configuration: { // ActionConfigurationMap
8383
* "<keys>": "STRING_VALUE",
8484
* },
85+
* commands: [ // CommandList
86+
* "STRING_VALUE",
87+
* ],
8588
* outputArtifacts: [ // OutputArtifactList
8689
* { // OutputArtifact
8790
* name: "STRING_VALUE", // required
91+
* files: [ // FilePathList
92+
* "STRING_VALUE",
93+
* ],
8894
* },
8995
* ],
9096
* inputArtifacts: [ // InputArtifactList
9197
* { // InputArtifact
9298
* name: "STRING_VALUE", // required
9399
* },
94100
* ],
101+
* outputVariables: [ // OutputVariableList
102+
* "STRING_VALUE",
103+
* ],
95104
* roleArn: "STRING_VALUE",
96105
* region: "STRING_VALUE",
97106
* namespace: "STRING_VALUE",
@@ -305,16 +314,25 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
305314
* // configuration: { // ActionConfigurationMap
306315
* // "<keys>": "STRING_VALUE",
307316
* // },
317+
* // commands: [ // CommandList
318+
* // "STRING_VALUE",
319+
* // ],
308320
* // outputArtifacts: [ // OutputArtifactList
309321
* // { // OutputArtifact
310322
* // name: "STRING_VALUE", // required
323+
* // files: [ // FilePathList
324+
* // "STRING_VALUE",
325+
* // ],
311326
* // },
312327
* // ],
313328
* // inputArtifacts: [ // InputArtifactList
314329
* // { // InputArtifact
315330
* // name: "STRING_VALUE", // required
316331
* // },
317332
* // ],
333+
* // outputVariables: [ // OutputVariableList
334+
* // "STRING_VALUE",
335+
* // ],
318336
* // roleArn: "STRING_VALUE",
319337
* // region: "STRING_VALUE",
320338
* // namespace: "STRING_VALUE",

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

+24
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,12 @@ export interface OutputArtifact {
409409
* @public
410410
*/
411411
name: string | undefined;
412+
413+
/**
414+
* <p>The files that you want to associate with the output artifact that will be exported from the compute action.</p>
415+
* @public
416+
*/
417+
files?: string[];
412418
}
413419

414420
/**
@@ -452,6 +458,18 @@ export interface ActionDeclaration {
452458
*/
453459
configuration?: Record<string, string>;
454460

461+
/**
462+
* <p>The shell commands to run with your compute action in CodePipeline. All commands are
463+
* supported except multi-line formats. While CodeBuild logs and permissions are used, you
464+
* do not need to create any resources in CodeBuild.</p>
465+
* <note>
466+
* <p>Using compute time for this action will incur separate charges in
467+
* CodeBuild.</p>
468+
* </note>
469+
* @public
470+
*/
471+
commands?: string[];
472+
455473
/**
456474
* <p>The name or ID of the result of the action declaration, such as a test or build
457475
* artifact.</p>
@@ -466,6 +484,12 @@ export interface ActionDeclaration {
466484
*/
467485
inputArtifacts?: InputArtifact[];
468486

487+
/**
488+
* <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>
489+
* @public
490+
*/
491+
outputVariables?: string[];
492+
469493
/**
470494
* <p>The ARN of the IAM service role that performs the declared action. This is assumed
471495
* through the roleArn for the pipeline.</p>

clients/client-codepipeline/src/protocols/Aws_json1_1.ts

+12
Original file line numberDiff line numberDiff line change
@@ -2514,6 +2514,8 @@ const se_ActionRevision = (input: ActionRevision, context: __SerdeContext): any
25142514

25152515
// se_BlockerDeclaration omitted.
25162516

2517+
// se_CommandList omitted.
2518+
25172519
// se_Condition omitted.
25182520

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

25652567
// se_FailureDetails omitted.
25662568

2569+
// se_FilePathList omitted.
2570+
25672571
// se_GetActionTypeInput omitted.
25682572

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

26312635
// se_OutputArtifactList omitted.
26322636

2637+
// se_OutputVariableList omitted.
2638+
26332639
// se_OutputVariablesMap omitted.
26342640

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

29722978
// de_BlockerDeclaration omitted.
29732979

2980+
// de_CommandList omitted.
2981+
29742982
// de_ConcurrentModificationException omitted.
29752983

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

30453053
// de_FailureConditions omitted.
30463054

3055+
// de_FilePathList omitted.
3056+
30473057
// de_GetActionTypeOutput omitted.
30483058

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

32323242
// de_OutputArtifactList omitted.
32333243

3244+
// de_OutputVariableList omitted.
3245+
32343246
// de_OutputVariablesMap omitted.
32353247

32363248
// de_OutputVariablesSizeExceededException omitted.

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

+81
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,12 @@
446446
"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>"
447447
}
448448
},
449+
"commands": {
450+
"target": "com.amazonaws.codepipeline#CommandList",
451+
"traits": {
452+
"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>"
453+
}
454+
},
449455
"outputArtifacts": {
450456
"target": "com.amazonaws.codepipeline#OutputArtifactList",
451457
"traits": {
@@ -458,6 +464,12 @@
458464
"smithy.api#documentation": "<p>The name or ID of the artifact consumed by the action, such as a test or build\n artifact.</p>"
459465
}
460466
},
467+
"outputVariables": {
468+
"target": "com.amazonaws.codepipeline#OutputVariableList",
469+
"traits": {
470+
"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>"
471+
}
472+
},
461473
"roleArn": {
462474
"target": "com.amazonaws.codepipeline#RoleArn",
463475
"traits": {
@@ -2863,6 +2875,27 @@
28632875
}
28642876
}
28652877
},
2878+
"com.amazonaws.codepipeline#Command": {
2879+
"type": "string",
2880+
"traits": {
2881+
"smithy.api#length": {
2882+
"min": 1,
2883+
"max": 1000
2884+
}
2885+
}
2886+
},
2887+
"com.amazonaws.codepipeline#CommandList": {
2888+
"type": "list",
2889+
"member": {
2890+
"target": "com.amazonaws.codepipeline#Command"
2891+
},
2892+
"traits": {
2893+
"smithy.api#length": {
2894+
"min": 1,
2895+
"max": 50
2896+
}
2897+
}
2898+
},
28662899
"com.amazonaws.codepipeline#ConcurrentModificationException": {
28672900
"type": "structure",
28682901
"members": {
@@ -3920,6 +3953,27 @@
39203953
}
39213954
}
39223955
},
3956+
"com.amazonaws.codepipeline#FilePath": {
3957+
"type": "string",
3958+
"traits": {
3959+
"smithy.api#length": {
3960+
"min": 1,
3961+
"max": 128
3962+
}
3963+
}
3964+
},
3965+
"com.amazonaws.codepipeline#FilePathList": {
3966+
"type": "list",
3967+
"member": {
3968+
"target": "com.amazonaws.codepipeline#FilePath"
3969+
},
3970+
"traits": {
3971+
"smithy.api#length": {
3972+
"min": 1,
3973+
"max": 10
3974+
}
3975+
}
3976+
},
39233977
"com.amazonaws.codepipeline#GetActionType": {
39243978
"type": "operation",
39253979
"input": {
@@ -5894,6 +5948,12 @@
58945948
"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>",
58955949
"smithy.api#required": {}
58965950
}
5951+
},
5952+
"files": {
5953+
"target": "com.amazonaws.codepipeline#FilePathList",
5954+
"traits": {
5955+
"smithy.api#documentation": "<p>The files that you want to associate with the output artifact that will be exported from the compute action.</p>"
5956+
}
58975957
}
58985958
},
58995959
"traits": {
@@ -5906,6 +5966,27 @@
59065966
"target": "com.amazonaws.codepipeline#OutputArtifact"
59075967
}
59085968
},
5969+
"com.amazonaws.codepipeline#OutputVariable": {
5970+
"type": "string",
5971+
"traits": {
5972+
"smithy.api#length": {
5973+
"min": 1,
5974+
"max": 128
5975+
}
5976+
}
5977+
},
5978+
"com.amazonaws.codepipeline#OutputVariableList": {
5979+
"type": "list",
5980+
"member": {
5981+
"target": "com.amazonaws.codepipeline#OutputVariable"
5982+
},
5983+
"traits": {
5984+
"smithy.api#length": {
5985+
"min": 1,
5986+
"max": 15
5987+
}
5988+
}
5989+
},
59095990
"com.amazonaws.codepipeline#OutputVariablesKey": {
59105991
"type": "string",
59115992
"traits": {

0 commit comments

Comments
 (0)