# GitHubDetailsProperty

- Source: Generated code
- Type last changed: v2.274.0 · 20 Oct 2026

## Example

```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',
  },
};
```

## Properties

- `appVerification`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnService.GitHubAppVerificationDetailsProperty](/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](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnService.GitHubPatDetailsProperty](/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.
