Skip to content

Commit

Permalink
feat(client-codepipeline): Add ability to trigger pipelines from git …
Browse files Browse the repository at this point in the history
…tags, define variables at pipeline level and new pipeline type V2.
  • Loading branch information
awstools committed Oct 24, 2023
1 parent dc52243 commit 2c3ba68
Show file tree
Hide file tree
Showing 10 changed files with 848 additions and 40 deletions.
56 changes: 56 additions & 0 deletions clients/client-codepipeline/src/commands/CreatePipelineCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,34 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* },
* ],
* version: Number("int"),
* pipelineType: "V1" || "V2",
* triggers: [ // PipelineTriggerDeclarationList
* { // PipelineTriggerDeclaration
* providerType: "CodeStarSourceConnection", // required
* gitConfiguration: { // GitConfiguration
* sourceActionName: "STRING_VALUE", // required
* push: [ // GitPushFilterList
* { // GitPushFilter
* tags: { // GitTagFilterCriteria
* includes: [ // GitTagPatternList
* "STRING_VALUE",
* ],
* excludes: [
* "STRING_VALUE",
* ],
* },
* },
* ],
* },
* },
* ],
* variables: [ // PipelineVariableDeclarationList
* { // PipelineVariableDeclaration
* name: "STRING_VALUE", // required
* defaultValue: "STRING_VALUE",
* description: "STRING_VALUE",
* },
* ],
* },
* tags: [ // TagList
* { // Tag
Expand Down Expand Up @@ -184,6 +212,34 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* // },
* // ],
* // version: Number("int"),
* // pipelineType: "V1" || "V2",
* // triggers: [ // PipelineTriggerDeclarationList
* // { // PipelineTriggerDeclaration
* // providerType: "CodeStarSourceConnection", // required
* // gitConfiguration: { // GitConfiguration
* // sourceActionName: "STRING_VALUE", // required
* // push: [ // GitPushFilterList
* // { // GitPushFilter
* // tags: { // GitTagFilterCriteria
* // includes: [ // GitTagPatternList
* // "STRING_VALUE",
* // ],
* // excludes: [
* // "STRING_VALUE",
* // ],
* // },
* // },
* // ],
* // },
* // },
* // ],
* // variables: [ // PipelineVariableDeclarationList
* // { // PipelineVariableDeclaration
* // name: "STRING_VALUE", // required
* // defaultValue: "STRING_VALUE",
* // description: "STRING_VALUE",
* // },
* // ],
* // },
* // tags: [ // TagList
* // { // Tag
Expand Down
28 changes: 28 additions & 0 deletions clients/client-codepipeline/src/commands/GetPipelineCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,34 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
* // },
* // ],
* // version: Number("int"),
* // pipelineType: "V1" || "V2",
* // triggers: [ // PipelineTriggerDeclarationList
* // { // PipelineTriggerDeclaration
* // providerType: "CodeStarSourceConnection", // required
* // gitConfiguration: { // GitConfiguration
* // sourceActionName: "STRING_VALUE", // required
* // push: [ // GitPushFilterList
* // { // GitPushFilter
* // tags: { // GitTagFilterCriteria
* // includes: [ // GitTagPatternList
* // "STRING_VALUE",
* // ],
* // excludes: [
* // "STRING_VALUE",
* // ],
* // },
* // },
* // ],
* // },
* // },
* // ],
* // variables: [ // PipelineVariableDeclarationList
* // { // PipelineVariableDeclaration
* // name: "STRING_VALUE", // required
* // defaultValue: "STRING_VALUE",
* // description: "STRING_VALUE",
* // },
* // ],
* // },
* // metadata: { // PipelineMetadata
* // pipelineArn: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ export interface GetPipelineExecutionCommandOutput extends GetPipelineExecutionO
* // revisionUrl: "STRING_VALUE",
* // },
* // ],
* // trigger: { // ExecutionTrigger
* // triggerType: "CreatePipeline" || "StartPipelineExecution" || "PollForSourceChanges" || "Webhook" || "CloudWatchEvent" || "PutActionRevision" || "WebhookV2",
* // triggerDetail: "STRING_VALUE",
* // },
* // variables: [ // ResolvedPipelineVariableList
* // { // ResolvedPipelineVariable
* // name: "STRING_VALUE",
* // resolvedValue: "STRING_VALUE",
* // },
* // ],
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export interface ListPipelineExecutionsCommandOutput extends ListPipelineExecuti
* // },
* // ],
* // trigger: { // ExecutionTrigger
* // triggerType: "CreatePipeline" || "StartPipelineExecution" || "PollForSourceChanges" || "Webhook" || "CloudWatchEvent" || "PutActionRevision",
* // triggerType: "CreatePipeline" || "StartPipelineExecution" || "PollForSourceChanges" || "Webhook" || "CloudWatchEvent" || "PutActionRevision" || "WebhookV2",
* // triggerDetail: "STRING_VALUE",
* // },
* // stopTrigger: { // StopExecutionTrigger
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export interface ListPipelinesCommandOutput extends ListPipelinesOutput, __Metad
* // { // PipelineSummary
* // name: "STRING_VALUE",
* // version: Number("int"),
* // pipelineType: "V1" || "V2",
* // created: new Date("TIMESTAMP"),
* // updated: new Date("TIMESTAMP"),
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ export interface StartPipelineExecutionCommandOutput extends StartPipelineExecut
* const client = new CodePipelineClient(config);
* const input = { // StartPipelineExecutionInput
* name: "STRING_VALUE", // required
* variables: [ // PipelineVariableList
* { // PipelineVariable
* name: "STRING_VALUE", // required
* value: "STRING_VALUE", // required
* },
* ],
* clientRequestToken: "STRING_VALUE",
* };
* const command = new StartPipelineExecutionCommand(input);
Expand Down
56 changes: 56 additions & 0 deletions clients/client-codepipeline/src/commands/UpdatePipelineCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,34 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* },
* ],
* version: Number("int"),
* pipelineType: "V1" || "V2",
* triggers: [ // PipelineTriggerDeclarationList
* { // PipelineTriggerDeclaration
* providerType: "CodeStarSourceConnection", // required
* gitConfiguration: { // GitConfiguration
* sourceActionName: "STRING_VALUE", // required
* push: [ // GitPushFilterList
* { // GitPushFilter
* tags: { // GitTagFilterCriteria
* includes: [ // GitTagPatternList
* "STRING_VALUE",
* ],
* excludes: [
* "STRING_VALUE",
* ],
* },
* },
* ],
* },
* },
* ],
* variables: [ // PipelineVariableDeclarationList
* { // PipelineVariableDeclaration
* name: "STRING_VALUE", // required
* defaultValue: "STRING_VALUE",
* description: "STRING_VALUE",
* },
* ],
* },
* };
* const command = new UpdatePipelineCommand(input);
Expand Down Expand Up @@ -175,6 +203,34 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* // },
* // ],
* // version: Number("int"),
* // pipelineType: "V1" || "V2",
* // triggers: [ // PipelineTriggerDeclarationList
* // { // PipelineTriggerDeclaration
* // providerType: "CodeStarSourceConnection", // required
* // gitConfiguration: { // GitConfiguration
* // sourceActionName: "STRING_VALUE", // required
* // push: [ // GitPushFilterList
* // { // GitPushFilter
* // tags: { // GitTagFilterCriteria
* // includes: [ // GitTagPatternList
* // "STRING_VALUE",
* // ],
* // excludes: [
* // "STRING_VALUE",
* // ],
* // },
* // },
* // ],
* // },
* // },
* // ],
* // variables: [ // PipelineVariableDeclarationList
* // { // PipelineVariableDeclaration
* // name: "STRING_VALUE", // required
* // defaultValue: "STRING_VALUE",
* // description: "STRING_VALUE",
* // },
* // ],
* // },
* // };
*
Expand Down
Loading

0 comments on commit 2c3ba68

Please sign in to comment.