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

export interface SnapshotCreateVolumePermissionArgs extends core.ResourceArgs {
  accountId: string | core.StringOut;

  snapshotId: string | core.StringOut;
}

export class SnapshotCreateVolumePermission extends core.Resource<SnapshotCreateVolumePermissionArgs> {
  @core.attr(String)
  public accountId!: string | core.StringOut;

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

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

  constructor(name: string, args?: SnapshotCreateVolumePermissionArgs) {
    super(name, "aws_snapshot_create_volume_permission", args);
  }

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