Interface CfnSourceCredentialProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnSourceCredentialProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:41.766Z") @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();
 
  • Method Details

    • getAuthType

      @Stability(Stable) @NotNull String getAuthType()
      The type of authentication used by the credentials.

      Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.

    • getServerType

      @Stability(Stable) @NotNull String getServerType()
      The type of source provider.

      The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.

    • getToken

      @Stability(Stable) @NotNull String getToken()
      For GitHub or GitHub Enterprise, this is the personal access token.

      For Bitbucket, this is the app password.

    • getUsername

      @Stability(Stable) @Nullable default String getUsername()
      The Bitbucket username when the authType is BASIC_AUTH.

      This parameter is not valid for other types of source providers or connections.

    • builder

      @Stability(Stable) static CfnSourceCredentialProps.Builder builder()
      Returns:
      a CfnSourceCredentialProps.Builder of CfnSourceCredentialProps