Package com.pulumi.aws.codebuild
Class SourceCredentialArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.codebuild.SourceCredentialArgs.Builder
-
- Enclosing class:
- SourceCredentialArgs
public static final class SourceCredentialArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(SourceCredentialArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceCredentialArgs.BuilderauthType(com.pulumi.core.Output<java.lang.String> authType)SourceCredentialArgs.BuilderauthType(java.lang.String authType)SourceCredentialArgsbuild()SourceCredentialArgs.Builderregion(com.pulumi.core.Output<java.lang.String> region)SourceCredentialArgs.Builderregion(java.lang.String region)SourceCredentialArgs.BuilderserverType(com.pulumi.core.Output<java.lang.String> serverType)SourceCredentialArgs.BuilderserverType(java.lang.String serverType)SourceCredentialArgs.Buildertoken(com.pulumi.core.Output<java.lang.String> token)SourceCredentialArgs.Buildertoken(java.lang.String token)SourceCredentialArgs.BuilderuserName(com.pulumi.core.Output<java.lang.String> userName)SourceCredentialArgs.BuilderuserName(java.lang.String userName)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(SourceCredentialArgs defaults)
-
-
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
-
build
public SourceCredentialArgs build()
-
-