Skip to content

Commit acbc876

Browse files
author
AWS
committed
AWS CodePipeline Update: Add environment variables to codepipeline action declaration.
1 parent fe68709 commit acbc876

File tree

2 files changed

+60
-14
lines changed

2 files changed

+60
-14
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS CodePipeline",
4+
"contributor": "",
5+
"description": "Add environment variables to codepipeline action declaration."
6+
}

services/codepipeline/src/main/resources/codegen-resources/service-2.json

Lines changed: 54 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@
342342
{"shape":"ValidationException"},
343343
{"shape":"InvalidNextTokenException"}
344344
],
345-
"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 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>"
345+
"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 conditions</a> and <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/concepts-how-it-works-conditions.html\">How do stage conditions work?</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>"
346346
},
347347
"ListTagsForResource":{
348348
"name":"ListTagsForResource",
@@ -390,7 +390,7 @@
390390
{"shape":"NotLatestPipelineExecutionException"},
391391
{"shape":"ConcurrentPipelineExecutionsLimitExceededException"}
392392
],
393-
"documentation":"<p>Used to override a stage condition.</p>"
393+
"documentation":"<p>Used to override a stage condition. For more information about conditions, see <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html\">Stage conditions</a> and <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/concepts-how-it-works-conditions.html\">How do stage conditions work?</a>.</p>"
394394
},
395395
"PollForJobs":{
396396
"name":"PollForJobs",
@@ -950,6 +950,10 @@
950950
"timeoutInMinutes":{
951951
"shape":"ActionTimeout",
952952
"documentation":"<p>A timeout duration in minutes that can be applied against the ActionType’s default timeout value specified in <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/limits.html\">Quotas for CodePipeline </a>. This attribute is available only to the manual approval ActionType.</p>"
953+
},
954+
"environmentVariables":{
955+
"shape":"EnvironmentVariableList",
956+
"documentation":"<p>The environment variables for the action.</p>"
953957
}
954958
},
955959
"documentation":"<p>Represents information about an action declaration.</p>"
@@ -1763,7 +1767,7 @@
17631767
"documentation":"<p>The conditions that are configured as entry conditions.</p>"
17641768
}
17651769
},
1766-
"documentation":"<p>The conditions for making checks for entry to a stage. </p>"
1770+
"documentation":"<p>The conditions for making checks for entry to a stage. For more information about conditions, see <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html\">Stage conditions</a> and <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/concepts-how-it-works-conditions.html\">How do stage conditions work?</a>. </p>"
17671771
},
17681772
"BlockerDeclaration":{
17691773
"type":"structure",
@@ -1848,7 +1852,7 @@
18481852
"documentation":"<p>The rules that make up the condition.</p>"
18491853
}
18501854
},
1851-
"documentation":"<p>The condition for the stage. A condition is made up of the rules and the result 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>"
1855+
"documentation":"<p>The condition for the stage. A condition is made up of the rules and the result 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> and <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/concepts-how-it-works-conditions.html\">How do stage conditions work?</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>"
18521856
},
18531857
"ConditionExecution":{
18541858
"type":"structure",
@@ -2208,6 +2212,42 @@
22082212
"type":"string",
22092213
"enum":["KMS"]
22102214
},
2215+
"EnvironmentVariable":{
2216+
"type":"structure",
2217+
"required":[
2218+
"name",
2219+
"value"
2220+
],
2221+
"members":{
2222+
"name":{
2223+
"shape":"EnvironmentVariableName",
2224+
"documentation":"<p>The environment variable name in the key-value pair.</p>"
2225+
},
2226+
"value":{
2227+
"shape":"EnvironmentVariableValue",
2228+
"documentation":"<p>The environment variable value in the key-value pair.</p>"
2229+
}
2230+
},
2231+
"documentation":"<p>The environment variables for the action.</p>"
2232+
},
2233+
"EnvironmentVariableList":{
2234+
"type":"list",
2235+
"member":{"shape":"EnvironmentVariable"},
2236+
"max":10,
2237+
"min":1
2238+
},
2239+
"EnvironmentVariableName":{
2240+
"type":"string",
2241+
"max":128,
2242+
"min":1,
2243+
"pattern":"[A-Za-z0-9_]+"
2244+
},
2245+
"EnvironmentVariableValue":{
2246+
"type":"string",
2247+
"max":2000,
2248+
"min":1,
2249+
"pattern":".*"
2250+
},
22112251
"ErrorDetails":{
22122252
"type":"structure",
22132253
"members":{
@@ -2315,10 +2355,10 @@
23152355
},
23162356
"conditions":{
23172357
"shape":"ConditionList",
2318-
"documentation":"<p>The conditions that are configured as failure conditions.</p>"
2358+
"documentation":"<p>The conditions that are configured as failure conditions. For more information about conditions, see <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html\">Stage conditions</a> and <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/concepts-how-it-works-conditions.html\">How do stage conditions work?</a>.</p>"
23192359
}
23202360
},
2321-
"documentation":"<p>The configuration that specifies the result, such as rollback, to occur upon stage failure. </p>"
2361+
"documentation":"<p>The configuration that specifies the result, such as rollback, to occur upon stage failure. For more information about conditions, see <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html\">Stage conditions</a> and <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/concepts-how-it-works-conditions.html\">How do stage conditions work?</a>. </p>"
23222362
},
23232363
"FailureDetails":{
23242364
"type":"structure",
@@ -2633,7 +2673,7 @@
26332673
"members":{
26342674
"events":{
26352675
"shape":"GitPullRequestEventTypeList",
2636-
"documentation":"<p>The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.</p>"
2676+
"documentation":"<p>The field that specifies which pull request events to filter on (OPEN, UPDATED, CLOSED) for the trigger configuration.</p>"
26372677
},
26382678
"branches":{
26392679
"shape":"GitBranchFilterCriteria",
@@ -2644,7 +2684,7 @@
26442684
"documentation":"<p>The field that specifies to filter on file paths for the pull request trigger configuration.</p>"
26452685
}
26462686
},
2647-
"documentation":"<p>The event criteria for the pull request trigger configuration, such as the lists of branches or file paths to include and exclude.</p>"
2687+
"documentation":"<p>The event criteria for the pull request trigger configuration, such as the lists of branches or file paths to include and exclude.</p> <p>The following are valid values for the events for this filter:</p> <ul> <li> <p>CLOSED</p> </li> <li> <p>OPEN</p> </li> <li> <p>UPDATED</p> </li> </ul>"
26482688
},
26492689
"GitPullRequestFilterList":{
26502690
"type":"list",
@@ -4001,7 +4041,7 @@
40014041
},
40024042
"token":{
40034043
"shape":"ApprovalToken",
4004-
"documentation":"<p>The system-generated token used to identify a unique approval request. The token for each open approval request can be obtained using the <a>GetPipelineState</a> action. It is used to validate that the approval request corresponding to this token is still valid.</p> <important> <p>For a pipeline where the execution mode is set to PARALLEL, the token required to approve/reject approval request as detailed above is not available. Instead, use the <code>externalExecutionId</code> from the <code>GetPipelineState</code> action as the token in the approval request.</p> </important>"
4044+
"documentation":"<p>The system-generated token used to identify a unique approval request. The token for each open approval request can be obtained using the <a>GetPipelineState</a> action. It is used to validate that the approval request corresponding to this token is still valid.</p> <important> <p>For a pipeline where the execution mode is set to PARALLEL, the token required to approve/reject an approval request as detailed above is not available. Instead, use the <code>externalExecutionId</code> in the response output from the <a>ListActionExecutions</a> action as the token in the approval request.</p> </important>"
40054045
}
40064046
},
40074047
"documentation":"<p>Represents the input of a <code>PutApprovalResult</code> action.</p>"
@@ -4457,7 +4497,7 @@
44574497
"documentation":"<p>The action timeout for the rule.</p>"
44584498
}
44594499
},
4460-
"documentation":"<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. 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>"
4500+
"documentation":"<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. For more information about conditions, see <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html\">Stage conditions</a> and <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/concepts-how-it-works-conditions.html\">How do stage conditions work?</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>"
44614501
},
44624502
"RuleDeclarationList":{
44634503
"type":"list",
@@ -4579,7 +4619,7 @@
45794619
"members":{
45804620
"ruleTypeId":{
45814621
"shape":"RuleTypeId",
4582-
"documentation":"<p>The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.</p>"
4622+
"documentation":"<p>The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. 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>"
45834623
},
45844624
"configuration":{
45854625
"shape":"RuleConfigurationMap",
@@ -4763,14 +4803,14 @@
47634803
},
47644804
"provider":{
47654805
"shape":"RuleProvider",
4766-
"documentation":"<p>The rule provider, such as the <code>DeploymentWindow</code> rule.</p>"
4806+
"documentation":"<p>The rule provider, such as the <code>DeploymentWindow</code> rule. For a list of rule provider names, see the rules listed in the <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/rule-reference.html\">CodePipeline rule reference</a>.</p>"
47674807
},
47684808
"version":{
47694809
"shape":"Version",
47704810
"documentation":"<p>A string that describes the rule version.</p>"
47714811
}
47724812
},
4773-
"documentation":"<p>The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.</p>"
4813+
"documentation":"<p>The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. 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>"
47744814
},
47754815
"RuleTypeList":{
47764816
"type":"list",
@@ -5228,7 +5268,7 @@
52285268
"documentation":"<p>The conditions that are success conditions.</p>"
52295269
}
52305270
},
5231-
"documentation":"<p>The conditions for making checks that, if met, succeed a stage.</p>"
5271+
"documentation":"<p>The conditions for making checks that, if met, succeed a stage. For more information about conditions, see <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html\">Stage conditions</a> and <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/concepts-how-it-works-conditions.html\">How do stage conditions work?</a>.</p>"
52325272
},
52335273
"Tag":{
52345274
"type":"structure",

0 commit comments

Comments
 (0)