Interface CfnSourceCredentialProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSourceCredentialProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.766Z")
@Stability(Stable)
public interface CfnSourceCredentialProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnSourceCredential.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codebuild.*;
CfnSourceCredentialProps cfnSourceCredentialProps = CfnSourceCredentialProps.builder()
.authType("authType")
.serverType("serverType")
.token("token")
// the properties below are optional
.username("username")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnSourceCredentialPropsstatic final classAn implementation forCfnSourceCredentialProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAuthType
The type of authentication used by the credentials.Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
-
getServerType
The type of source provider.The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
-
getToken
For GitHub or GitHub Enterprise, this is the personal access token.For Bitbucket, this is the app password.
-
getUsername
The Bitbucket username when theauthTypeis BASIC_AUTH.This parameter is not valid for other types of source providers or connections.
-
builder
- Returns:
- a
CfnSourceCredentialProps.BuilderofCfnSourceCredentialProps
-