# RegisteredGitHubServiceDetailsProperty

GitHub service details returned after registration.

- 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 registeredGitHubServiceDetailsProperty: devopsagent.CfnService.RegisteredGitHubServiceDetailsProperty = {
  owner: 'owner',
  ownerType: 'ownerType',

  // the properties below are optional
  appVariant: 'appVariant',
  authMode: 'authMode',
  hostingType: 'hostingType',
  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

registered_git_hub_service_details_property = devopsagent.CfnService.RegisteredGitHubServiceDetailsProperty(
    owner="owner",
    owner_type="ownerType",

    # the properties below are optional
    app_variant="appVariant",
    auth_mode="authMode",
    hosting_type="hostingType",
    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.*;

RegisteredGitHubServiceDetailsProperty registeredGitHubServiceDetailsProperty = RegisteredGitHubServiceDetailsProperty.builder()
        .owner("owner")
        .ownerType("ownerType")

        // the properties below are optional
        .appVariant("appVariant")
        .authMode("authMode")
        .hostingType("hostingType")
        .targetUrl("targetUrl")
        .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 registeredGitHubServiceDetailsProperty = new RegisteredGitHubServiceDetailsProperty {
    Owner = "owner",
    OwnerType = "ownerType",

    // the properties below are optional
    AppVariant = "appVariant",
    AuthMode = "authMode",
    HostingType = "hostingType",
    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"

registeredGitHubServiceDetailsProperty := &RegisteredGitHubServiceDetailsProperty{
	Owner: jsii.String("owner"),
	OwnerType: jsii.String("ownerType"),

	// the properties below are optional
	AppVariant: jsii.String("appVariant"),
	AuthMode: jsii.String("authMode"),
	HostingType: jsii.String("hostingType"),
	TargetUrl: jsii.String("targetUrl"),
}
```

## Properties

- `appVariant`: string — The GitHub App variant the service was registered with.

- `authMode`: string — How the service authenticates against the GitHub API: app after AppVerification, pat after DirectAccess.

- `hostingType`: string — The GitHub hosting type the service was registered with.

- `owner`: string (required) — The GitHub repository owner name derived from the token.

- `ownerType`: string (required) — Type of repository owner.

- `targetUrl`: string — GitHub instance URL (absent for github.com).
