Interface CfnSourceCredentialProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSourceCredentialProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:11.971Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnSourceCredentialProps
static final class
An 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
authType
CODECONNECTIONS, this is theconnectionArn
. For theauthType
SECRETS_MANAGER, this is thesecretArn
.- See Also:
-
getUsername
The Bitbucket username when theauthType
is BASIC_AUTH.This parameter is not valid for other types of source providers or connections.
- See Also:
-
builder
- Returns:
- a
CfnSourceCredentialProps.Builder
ofCfnSourceCredentialProps
-