Class GitHubSourceAction
Source that is provided by a GitHub repository.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CodePipeline.Actions
Assembly: Amazon.CDK.AWS.CodePipeline.Actions.dll
Syntax (csharp)
public class GitHubSourceAction : Action, IAction
Syntax (vb)
Public Class GitHubSourceAction
Inherits Action
Implements IAction
Remarks
ExampleMetadata: infused
Examples
Artifact sourceOutput;
PipelineProject project;
var sourceAction = new GitHubSourceAction(new GitHubSourceActionProps {
ActionName = "Github_Source",
Output = sourceOutput,
Owner = "my-owner",
Repo = "my-repo",
OauthToken = SecretValue.SecretsManager("my-github-token"),
VariablesNamespace = "MyNamespace"
});
// later:
// later:
new CodeBuildAction(new CodeBuildActionProps {
ActionName = "CodeBuild",
Project = project,
Input = sourceOutput,
EnvironmentVariables = new Dictionary<string, BuildEnvironmentVariable> {
{ "COMMIT_URL", new BuildEnvironmentVariable {
Value = sourceAction.Variables.CommitUrl
} }
}
});
Synopsis
Constructors
GitHubSourceAction(IGitHubSourceActionProps) | |
GitHubSourceAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
GitHubSourceAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Variables | The variables emitted by this action. |
Methods
Bound(Construct, IStage, IActionBindOptions) | This is a renamed version of the {@link IAction.bind} method. |
Constructors
GitHubSourceAction(IGitHubSourceActionProps)
GitHubSourceAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected GitHubSourceAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
GitHubSourceAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected GitHubSourceAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Variables
The variables emitted by this action.
public virtual IGitHubSourceVariables Variables { get; }
Property Value
Methods
Bound(Construct, IStage, IActionBindOptions)
This is a renamed version of the {@link IAction.bind} method.
protected override IActionConfig Bound(Construct scope, IStage stage, IActionBindOptions options)
Parameters
- scope Construct
- stage IStage
- options IActionBindOptions
Returns