Class SourceCredential
Provides a CodeBuild Source Credentials Resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.CodeBuild.SourceCredential("example", new Aws.CodeBuild.SourceCredentialArgs
{
AuthType = "PERSONAL_ACCESS_TOKEN",
ServerType = "GITHUB",
Token = "example",
});
}
}
Bitbucket Server Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.CodeBuild.SourceCredential("example", new Aws.CodeBuild.SourceCredentialArgs
{
AuthType = "BASIC_AUTH",
ServerType = "BITBUCKET",
Token = "example",
UserName = "test-user",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.CodeBuild
Assembly: Pulumi.Aws.dll
Syntax
public class SourceCredential : CustomResource
Constructors
View SourceSourceCredential(String, SourceCredentialArgs, CustomResourceOptions)
Create a SourceCredential resource with the given unique name, arguments, and options.
Declaration
public SourceCredential(string name, SourceCredentialArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SourceCredentialArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
The ARN of Source Credential.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AuthType
The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API.
Declaration
public Output<string> AuthType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ServerType
The source provider used for this project.
Declaration
public Output<string> ServerType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Token
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
Declaration
public Output<string> Token { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UserName
The Bitbucket username when the authType is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
Declaration
public Output<string> UserName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, SourceCredentialState, CustomResourceOptions)
Get an existing SourceCredential resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static SourceCredential Get(string name, Input<string> id, SourceCredentialState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| SourceCredentialState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| SourceCredential |