Interface CfnSourceCredentialProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSourceCredentialProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:06.951Z")
@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();
- See Also:
-
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, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER.
- See Also:
-
getServerType
The type of source provider.The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED, or BITBUCKET.
- See Also:
-
getToken
For GitHub or GitHub Enterprise, this is the personal access token.For Bitbucket, this is either the access token or the app password. For the
authTypeCODECONNECTIONS, this is theconnectionArn. For theauthTypeSECRETS_MANAGER, this is thesecretArn.- See Also:
-
getUsername
The Bitbucket username when theauthTypeis BASIC_AUTH.This parameter is not valid for other types of source providers or connections.
- See Also:
-
builder
- Returns:
- a
CfnSourceCredentialProps.BuilderofCfnSourceCredentialProps
-