import * as core from "@terrascript/core"; export interface SourceCredentialArgs extends core.ResourceArgs { /** * (Required) The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket r * epository. An OAUTH connection is not supported by the API. */ authType: string | core.StringOut; /** * (Required) The source provider used for this project. */ serverType: string | core.StringOut; /** * (Required) For `GitHub` or `GitHub Enterprise`, this is the personal access token. For `Bitbucket`, * this is the app password. */ token: string | core.StringOut; /** * (Optional) The Bitbucket username when the authType is `BASIC_AUTH`. This parameter is not valid for * other types of source providers or connections. */ userName?: string | core.StringOut; } export class SourceCredential extends core.Resource { /** * The ARN of Source Credential. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket r * epository. An OAUTH connection is not supported by the API. */ @core.attr(String) public authType!: string | core.StringOut; /** * The ARN of Source Credential. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The source provider used for this project. */ @core.attr(String) public serverType!: string | core.StringOut; /** * (Required) For `GitHub` or `GitHub Enterprise`, this is the personal access token. For `Bitbucket`, * this is the app password. */ @core.attr(String) public token!: string | core.StringOut; /** * (Optional) The Bitbucket username when the authType is `BASIC_AUTH`. This parameter is not valid for * other types of source providers or connections. */ @core.attr(String) public userName?: string | core.StringOut; constructor(name: string, args?: SourceCredentialArgs) { super(name, "aws_codebuild_source_credential", args); } public override getNamespace(): string { return "aws_codebuild"; } }