@Stability(value=Stable) public static final class CfnSourceCredential.Builder extends Object implements software.amazon.jsii.Builder<CfnSourceCredential>
CfnSourceCredential.| Modifier and Type | Method and Description |
|---|---|
CfnSourceCredential.Builder |
authType(String authType)
The type of authentication used by the credentials.
|
CfnSourceCredential |
build() |
static CfnSourceCredential.Builder |
create(software.constructs.Construct scope,
String id) |
CfnSourceCredential.Builder |
serverType(String serverType)
The type of source provider.
|
CfnSourceCredential.Builder |
token(String token)
For GitHub or GitHub Enterprise, this is the personal access token.
|
CfnSourceCredential.Builder |
username(String username)
The Bitbucket username when the `authType` is BASIC_AUTH.
|
@Stability(value=Stable) public static CfnSourceCredential.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnSourceCredential.Builder.@Stability(value=Stable) public CfnSourceCredential.Builder authType(String authType)
Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
authType - The type of authentication used by the credentials. This parameter is required.this@Stability(value=Stable) public CfnSourceCredential.Builder serverType(String serverType)
The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
serverType - The type of source provider. This parameter is required.this@Stability(value=Stable) public CfnSourceCredential.Builder token(String token)
For Bitbucket, this is the app password.
token - For GitHub or GitHub Enterprise, this is the personal access token. This parameter is required.this@Stability(value=Stable) public CfnSourceCredential.Builder username(String username)
This parameter is not valid for other types of source providers or connections.
username - The Bitbucket username when the `authType` is BASIC_AUTH. This parameter is required.this@Stability(value=Stable) public CfnSourceCredential build()
build in interface software.amazon.jsii.Builder<CfnSourceCredential>Copyright © 2022. All rights reserved.