GitHubPatDetailsProperty Struct
The token is stored and used as the long-lived credential for GitHub API access.
| Source | |
|---|---|
| Type last changed |
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 gitHubPatDetailsProperty: devopsagent.CfnService.GitHubPatDetailsProperty = {
tokenValue: 'tokenValue',
// the properties below are optional
organizationName: 'organizationName',
targetUrl: 'targetUrl',
};
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_pat_details_property = devopsagent.CfnService.GitHubPatDetailsProperty(
token_value="tokenValue",
# the properties below are optional
organization_name="organizationName",
target_url="targetUrl"
)
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.*;
GitHubPatDetailsProperty gitHubPatDetailsProperty = GitHubPatDetailsProperty.builder()
.tokenValue("tokenValue")
// the properties below are optional
.organizationName("organizationName")
.targetUrl("targetUrl")
.build();
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 gitHubPatDetailsProperty = new GitHubPatDetailsProperty {
TokenValue = "tokenValue",
// the properties below are optional
OrganizationName = "organizationName",
TargetUrl = "targetUrl"
};
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"
gitHubPatDetailsProperty := &GitHubPatDetailsProperty{
TokenValue: jsii.String("tokenValue"),
// the properties below are optional
OrganizationName: jsii.String("organizationName"),
TargetUrl: jsii.String("targetUrl"),
}
Properties
organizationNameoptionalstringorganization_nameoptionalstrorganizationNameoptionalStringOrganizationNameoptionalstringOrganizationNameoptional*string #GitHub organization to scope the service to.
The token must be an active member of the organization and only that organization's repositories are accessible. Omit to register the token's own user account
targetUrloptionalstringtarget_urloptionalstrtargetUrloptionalStringTargetUrloptionalstringTargetUrloptional*string #GitHub instance URL.
Omit for github.com. Provide the instance host for GitHub Enterprise Server or GitHub Enterprise Cloud with data residency (e.g. https://github.example.com)
GitHub personal access token (PAT) value.
Accepts classic PATs (ghp_...), fine-grained PATs (github_pat_...), and GitHub Enterprise Server token formats