Skip to content
v2.278.0

GitHubDetailsProperty Struct ​

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',
  },
};
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
// 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();
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"
    }
};
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 ​

appVerificationoptionalIResolvable | CfnService.GitHubAppVerificationDetailsPropertyapp_verificationoptionaltyping.Union[IResolvable, GitHubAppVerificationDetailsProperty]appVerificationoptionalIResolvableAppVerificationoptionalIResolvableAppVerificationoptionalinterface{} #
The token verifies an existing DevOps Agent GitHub App installation on github.com and is then discarded. Not supported for GitHub Enterprise Server.
directAccessoptionalIResolvable | CfnService.GitHubPatDetailsPropertydirect_accessoptionaltyping.Union[IResolvable, GitHubPatDetailsProperty]directAccessoptionalIResolvableDirectAccessoptionalIResolvableDirectAccessoptionalinterface{} #
The token is stored and used as the long-lived credential for GitHub API access.