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

export interface ServiceSpecificCredentialArgs extends core.ResourceArgs {
  serviceName: string | core.StringOut;

  status?: string | core.StringOut;

  userName: string | core.StringOut;
}

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

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

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

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

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

  @core.attr(String)
  public status?: string | core.StringOut;

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

  constructor(name: string, args?: ServiceSpecificCredentialArgs) {
    super(name, "aws_iam_service_specific_credential", args);
  }

  public override getNamespace(): string {
    return "aws_iam";
  }
}
