# CodeStarSourceVariables

The CodePipeline variables emitted by CodeStar source Action.

- Source: [`aws-codepipeline-actions/lib/codestar-connections/source-action.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-codepipeline-actions/lib/codestar-connections/source-action.ts#L10)
- Type last changed: v2.4.0 · 6 Jan 2022

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codepipeline_actions as codepipeline_actions } from 'aws-cdk-lib';
const codeStarSourceVariables: codepipeline_actions.CodeStarSourceVariables = {
  authorDate: 'authorDate',
  branchName: 'branchName',
  commitId: 'commitId',
  commitMessage: 'commitMessage',
  connectionArn: 'connectionArn',
  fullRepositoryName: 'fullRepositoryName',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codepipeline_actions as codepipeline_actions

code_star_source_variables = codepipeline_actions.CodeStarSourceVariables(
    author_date="authorDate",
    branch_name="branchName",
    commit_id="commitId",
    commit_message="commitMessage",
    connection_arn="connectionArn",
    full_repository_name="fullRepositoryName"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codepipeline.actions.*;

CodeStarSourceVariables codeStarSourceVariables = CodeStarSourceVariables.builder()
        .authorDate("authorDate")
        .branchName("branchName")
        .commitId("commitId")
        .commitMessage("commitMessage")
        .connectionArn("connectionArn")
        .fullRepositoryName("fullRepositoryName")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodePipeline.Actions;

var codeStarSourceVariables = new CodeStarSourceVariables {
    AuthorDate = "authorDate",
    BranchName = "branchName",
    CommitId = "commitId",
    CommitMessage = "commitMessage",
    ConnectionArn = "connectionArn",
    FullRepositoryName = "fullRepositoryName"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

codeStarSourceVariables := &CodeStarSourceVariables{
	AuthorDate: jsii.String("authorDate"),
	BranchName: jsii.String("branchName"),
	CommitId: jsii.String("commitId"),
	CommitMessage: jsii.String("commitMessage"),
	ConnectionArn: jsii.String("connectionArn"),
	FullRepositoryName: jsii.String("fullRepositoryName"),
}
```

## Properties

- `authorDate`: string (required) — The date the currently last commit on the tracked branch was authored, in ISO-8601 format.

- `branchName`: string (required) — The name of the branch this action tracks.

- `commitId`: string (required) — The SHA1 hash of the currently last commit on the tracked branch.

- `commitMessage`: string (required) — The message of the currently last commit on the tracked branch.

- `connectionArn`: string (required) — The connection ARN this source uses.

- `fullRepositoryName`: string (required) — The name of the repository this action points to.
