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

export interface ResourceShareAccepterArgs extends core.ResourceArgs {
  /**
   * (Required) The ARN of the resource share.
   */
  shareArn: string | core.StringOut;
}

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

  /**
   * The ARN of the resource share invitation.
   */
  @core.attr(String, { computed: true })
  public invitationArn!: string | core.StringOut;

  /**
   * The account ID of the receiver account which accepts the invitation.
   */
  @core.attr(String, { computed: true })
  public receiverAccountId!: string | core.StringOut;

  /**
   * A list of the resource ARNs shared via the resource share.
   */
  @core.attr(String, { computed: true, kind: "array" })
  public resources!: core.Array<string> | core.ArrayOut<core.StringOut>;

  /**
   * The account ID of the sender account which submits the invitation.
   */
  @core.attr(String, { computed: true })
  public senderAccountId!: string | core.StringOut;

  /**
   * (Required) The ARN of the resource share.
   */
  @core.attr(String)
  public shareArn!: string | core.StringOut;

  /**
   * The ID of the resource share as displayed in the console.
   */
  @core.attr(String, { computed: true })
  public shareId!: string | core.StringOut;

  /**
   * The name of the resource share.
   */
  @core.attr(String, { computed: true })
  public shareName!: string | core.StringOut;

  /**
   * The status of the resource share (ACTIVE, PENDING, FAILED, DELETING, DELETED).
   */
  @core.attr(String, { computed: true })
  public status!: string | core.StringOut;

  constructor(name: string, args?: ResourceShareAccepterArgs) {
    super(name, "aws_ram_resource_share_accepter", args);
  }

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