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

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

  group?: string | core.StringOut;

  imageId: string | core.StringOut;

  organizationArn?: string | core.StringOut;

  organizationalUnitArn?: string | core.StringOut;
}

export class AmiLaunchPermission extends core.Resource<AmiLaunchPermissionArgs> {
  @core.attr(String)
  public accountId?: string | core.StringOut;

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

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

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

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

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

  constructor(name: string, args?: AmiLaunchPermissionArgs) {
    super(name, "aws_ami_launch_permission", args);
  }

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