Interface ICfnSourceCredentialProps
Properties for defining a CfnSourceCredential
.
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnSourceCredentialProps
Syntax (vb)
Public Interface ICfnSourceCredentialProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeBuild;
var cfnSourceCredentialProps = new CfnSourceCredentialProps {
AuthType = "authType",
ServerType = "serverType",
Token = "token",
// the properties below are optional
Username = "username"
};
Synopsis
Properties
AuthType | The type of authentication used by the credentials. |
ServerType | The type of source provider. |
Token | For GitHub or GitHub Enterprise, this is the personal access token. |
Username | The Bitbucket username when the |
Properties
AuthType
The type of authentication used by the credentials.
string AuthType { get; }
Property Value
System.String
Remarks
Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.
ServerType
The type of source provider.
string ServerType { get; }
Property Value
System.String
Remarks
The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED, or BITBUCKET.
Token
For GitHub or GitHub Enterprise, this is the personal access token.
string Token { get; }
Property Value
System.String
Remarks
For Bitbucket, this is either the access token or the app password.
Username
The Bitbucket username when the authType
is BASIC_AUTH.
virtual string Username { get; }
Property Value
System.String
Remarks
This parameter is not valid for other types of source providers or connections.