Class SourceCredentialArgs.Builder

  • Enclosing class:
    SourceCredentialArgs

    public static final class SourceCredentialArgs.Builder
    extends java.lang.Object
    • Method Detail

      • authType

        public SourceCredentialArgs.Builder authType​(com.pulumi.core.Output<java.lang.String> authType)
        Parameters:
        authType - The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. Valid values are `BASIC_AUTH`, `PERSONAL_ACCESS_TOKEN`, `CODECONNECTIONS`, and `SECRETS_MANAGER`. An OAuth connection is not supported by the API.
        Returns:
        builder
      • authType

        public SourceCredentialArgs.Builder authType​(java.lang.String authType)
        Parameters:
        authType - The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. Valid values are `BASIC_AUTH`, `PERSONAL_ACCESS_TOKEN`, `CODECONNECTIONS`, and `SECRETS_MANAGER`. An OAuth connection is not supported by the API.
        Returns:
        builder
      • region

        public SourceCredentialArgs.Builder region​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public SourceCredentialArgs.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • serverType

        public SourceCredentialArgs.Builder serverType​(com.pulumi.core.Output<java.lang.String> serverType)
        Parameters:
        serverType - The source provider used for this project.
        Returns:
        builder
      • serverType

        public SourceCredentialArgs.Builder serverType​(java.lang.String serverType)
        Parameters:
        serverType - The source provider used for this project.
        Returns:
        builder
      • token

        public SourceCredentialArgs.Builder token​(com.pulumi.core.Output<java.lang.String> token)
        Parameters:
        token - For a GitHub and GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password. When using an AWS CodeStar connection (`authType = "CODECONNECTIONS")`, this is an AWS CodeStar Connection ARN.
        Returns:
        builder
      • token

        public SourceCredentialArgs.Builder token​(java.lang.String token)
        Parameters:
        token - For a GitHub and GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password. When using an AWS CodeStar connection (`authType = "CODECONNECTIONS")`, this is an AWS CodeStar Connection ARN.
        Returns:
        builder
      • userName

        public SourceCredentialArgs.Builder userName​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> userName)
        Parameters:
        userName - The Bitbucket username when the authType is `BASIC_AUTH`. This parameter is not valid for other types of source providers or connections.
        Returns:
        builder
      • userName

        public SourceCredentialArgs.Builder userName​(java.lang.String userName)
        Parameters:
        userName - The Bitbucket username when the authType is `BASIC_AUTH`. This parameter is not valid for other types of source providers or connections.
        Returns:
        builder