@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:03.104Z") @Stability(value=Experimental) public class GitHubSourceAction extends Action
Example:
Artifact sourceOutput;
PipelineProject project;
GitHubSourceAction sourceAction = GitHubSourceAction.Builder.create()
.actionName("Github_Source")
.output(sourceOutput)
.owner("my-owner")
.repo("my-repo")
.oauthToken(SecretValue.secretsManager("my-github-token"))
.variablesNamespace("MyNamespace")
.build();
// later:
// later:
CodeBuildAction.Builder.create()
.actionName("CodeBuild")
.project(project)
.input(sourceOutput)
.environmentVariables(Map.of(
"COMMIT_URL", BuildEnvironmentVariable.builder()
.value(sourceAction.getVariables().getCommitUrl())
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
GitHubSourceAction.Builder
(experimental) A fluent builder for
GitHubSourceAction. |
software.amazon.jsii.JsiiObject.InitializationModeIAction.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
GitHubSourceAction(GitHubSourceActionProps props) |
protected |
GitHubSourceAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
GitHubSourceAction(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected ActionConfig |
bound(Construct scope,
IStage stage,
ActionBindOptions _options)
(experimental) This is a renamed version of the
IAction.bind method. |
GitHubSourceVariables |
getVariables()
(experimental) The variables emitted by this action.
|
getProvidedActionPropertiesbind, getActionProperties, onStateChange, onStateChange, onStateChange, variableExpressionjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected GitHubSourceAction(software.amazon.jsii.JsiiObjectRef objRef)
protected GitHubSourceAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public GitHubSourceAction(@NotNull
GitHubSourceActionProps props)
props - This parameter is required.@Stability(value=Experimental) @NotNull protected ActionConfig bound(@NotNull Construct scope, @NotNull IStage stage, @NotNull ActionBindOptions _options)
IAction.bind method.
@Stability(value=Experimental) @NotNull public GitHubSourceVariables getVariables()
Copyright © 2022. All rights reserved.