@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.328Z") @Stability(value=Stable) public interface CfnSourceCredentialProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnSourceCredentialProps.Builder
A builder for
CfnSourceCredentialProps |
static class |
CfnSourceCredentialProps.Jsii$Proxy
An implementation for
CfnSourceCredentialProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnSourceCredentialProps.Builder |
builder() |
String |
getAuthType()
The type of authentication used by the credentials.
|
String |
getServerType()
The type of source provider.
|
String |
getToken()
For GitHub or GitHub Enterprise, this is the personal access token.
|
default String |
getUsername()
The Bitbucket username when the `authType` is BASIC_AUTH.
|
@Stability(value=Stable) @NotNull String getAuthType()
Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
@Stability(value=Stable) @NotNull String getServerType()
The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
@Stability(value=Stable) @NotNull String getToken()
For Bitbucket, this is the app password.
@Stability(value=Stable) @Nullable default String getUsername()
This parameter is not valid for other types of source providers or connections.
@Stability(value=Stable) static CfnSourceCredentialProps.Builder builder()
CfnSourceCredentialProps.Builder of CfnSourceCredentialPropsCopyright © 2022. All rights reserved.