# GitHubDetailsProperty

- Source: Generated at build time
- Type last changed: v2.274.0 · 20 Oct 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsagent as devopsagent } from 'aws-cdk-lib';
const gitHubDetailsProperty: devopsagent.CfnService.GitHubDetailsProperty = {
  appVerification: {
    appVariant: 'appVariant',
    tokenValue: 'tokenValue',

    // the properties below are optional
    organizationName: 'organizationName',
    targetUrl: 'targetUrl',
  },
  directAccess: {
    tokenValue: 'tokenValue',

    // the properties below are optional
    organizationName: 'organizationName',
    targetUrl: 'targetUrl',
  },
};
```

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_devopsagent as devopsagent

git_hub_details_property = devopsagent.CfnService.GitHubDetailsProperty(
    app_verification=devopsagent.CfnService.GitHubAppVerificationDetailsProperty(
        app_variant="appVariant",
        token_value="tokenValue",

        # the properties below are optional
        organization_name="organizationName",
        target_url="targetUrl"
    ),
    direct_access=devopsagent.CfnService.GitHubPatDetailsProperty(
        token_value="tokenValue",

        # the properties below are optional
        organization_name="organizationName",
        target_url="targetUrl"
    )
)
```

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.devopsagent.*;

GitHubDetailsProperty gitHubDetailsProperty = GitHubDetailsProperty.builder()
        .appVerification(GitHubAppVerificationDetailsProperty.builder()
                .appVariant("appVariant")
                .tokenValue("tokenValue")

                // the properties below are optional
                .organizationName("organizationName")
                .targetUrl("targetUrl")
                .build())
        .directAccess(GitHubPatDetailsProperty.builder()
                .tokenValue("tokenValue")

                // the properties below are optional
                .organizationName("organizationName")
                .targetUrl("targetUrl")
                .build())
        .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.DevOpsAgent;

var gitHubDetailsProperty = new GitHubDetailsProperty {
    AppVerification = new GitHubAppVerificationDetailsProperty {
        AppVariant = "appVariant",
        TokenValue = "tokenValue",

        // the properties below are optional
        OrganizationName = "organizationName",
        TargetUrl = "targetUrl"
    },
    DirectAccess = new GitHubPatDetailsProperty {
        TokenValue = "tokenValue",

        // the properties below are optional
        OrganizationName = "organizationName",
        TargetUrl = "targetUrl"
    }
};
```

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"

gitHubDetailsProperty := &GitHubDetailsProperty{
	AppVerification: &GitHubAppVerificationDetailsProperty{
		AppVariant: jsii.String("appVariant"),
		TokenValue: jsii.String("tokenValue"),

		// the properties below are optional
		OrganizationName: jsii.String("organizationName"),
		TargetUrl: jsii.String("targetUrl"),
	},
	DirectAccess: &GitHubPatDetailsProperty{
		TokenValue: jsii.String("tokenValue"),

		// the properties below are optional
		OrganizationName: jsii.String("organizationName"),
		TargetUrl: jsii.String("targetUrl"),
	},
}
```

## Properties

- `appVerification`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnService.GitHubAppVerificationDetailsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_devopsagent.CfnService.GitHubAppVerificationDetailsProperty.html) — The token verifies an existing DevOps Agent GitHub App installation on github.com and is then discarded. Not supported for GitHub Enterprise Server.

- `directAccess`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnService.GitHubPatDetailsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_devopsagent.CfnService.GitHubPatDetailsProperty.html) — The token is stored and used as the long-lived credential for GitHub API access.
