import * as core from "@terrascript/core";

export interface SourceCredentialArgs extends core.ResourceArgs {
  authType: string | core.StringOut;

  serverType: string | core.StringOut;

  token: string | core.StringOut;

  userName?: string | core.StringOut;
}

export class SourceCredential extends core.Resource<SourceCredentialArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  @core.attr(String)
  public authType!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String)
  public serverType!: string | core.StringOut;

  @core.attr(String)
  public token!: string | core.StringOut;

  @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";
  }
}
