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

export interface SigningProfilePermissionArgs extends core.ResourceArgs {
  action: string | core.StringOut;

  principal: string | core.StringOut;

  profileName: string | core.StringOut;

  profileVersion?: string | core.StringOut;

  statementId?: string | core.StringOut;

  statementIdPrefix?: string | core.StringOut;
}

export class SigningProfilePermission extends core.Resource<SigningProfilePermissionArgs> {
  @core.attr(String)
  public action!: string | core.StringOut;

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

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

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

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

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

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

  constructor(name: string, args?: SigningProfilePermissionArgs) {
    super(name, "aws_signer_signing_profile_permission", args);
  }

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