# GitHubInputProperty

The input required to create a GitHub integration.

- 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_securityagent as securityagent } from 'aws-cdk-lib';
const gitHubInputProperty: securityagent.CfnIntegration.GitHubInputProperty = {
  code: 'code',
  state: 'state',

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

## Properties

- `code`: string (required) — The OAuth authorization code received from GitHub.

- `installationId`: string — The installation identifier provided by GitHub Enterprise Server on the install callback.

  Required for GitHub Enterprise Server integrations and ignored for GitHub.com.

- `organizationName`: string — The name of the GitHub organization to integrate with.

- `state`: string (required) — The CSRF state token for validating the OAuth flow.

- `targetUrl`: string — The HTTPS URL of a self-hosted GitHub Enterprise Server instance.

  Omit this value for GitHub.com.
