Show / Hide Table of Contents

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
SourceCredential
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.CodeBuild
Assembly: Pulumi.Aws.dll
Syntax
public class SourceCredential : CustomResource

Constructors

View Source

SourceCredential(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 Source

Arn

The ARN of Source Credential.

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

ServerType

The source provider used for this project.

Declaration
public Output<string> ServerType { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.