Class CfnSourceCredentialPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codebuild.CfnSourceCredentialPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSourceCredentialPropsMixin>
- Enclosing class:
CfnSourceCredentialPropsMixin
@Stability(Stable)
public static final class CfnSourceCredentialPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSourceCredentialPropsMixin>
A fluent builder for
CfnSourceCredentialPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionThe type of authentication used by the credentials.build()create()create(CfnPropertyMixinOptions options) serverType(String serverType) The type of source provider.For GitHub or GitHub Enterprise, this is the personal access token.The Bitbucket username when theauthTypeis BASIC_AUTH.
-
Method Details
-
create
@Stability(Stable) public static CfnSourceCredentialPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnSourceCredentialPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnSourceCredentialPropsMixin.Builder.
-
authType
The type of authentication used by the credentials.Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER.
- Parameters:
authType- The type of authentication used by the credentials. This parameter is required.- Returns:
this- See Also:
-
serverType
The type of source provider.The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED, or BITBUCKET.
- Parameters:
serverType- The type of source provider. This parameter is required.- Returns:
this- See Also:
-
token
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.- Parameters:
token- For GitHub or GitHub Enterprise, this is the personal access token. This parameter is required.- Returns:
this- See Also:
-
username
The Bitbucket username when theauthTypeis BASIC_AUTH.This parameter is not valid for other types of source providers or connections.
- Parameters:
username- The Bitbucket username when theauthTypeis BASIC_AUTH. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSourceCredentialPropsMixin>- Returns:
- a newly built instance of
CfnSourceCredentialPropsMixin.
-