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

export interface NetworkInterfacesArgs extends core.SchemaArgs {
  networkInterfaceId: string | core.StringOut;
}

export class NetworkInterfaces extends core.Schema<NetworkInterfacesArgs> {
  @core.attr(String, { computed: true })
  public networkInterfaceId!: string | core.StringOut;
}

export interface EndpointArgs extends core.ResourceArgs {
  outpostId: string | core.StringOut;

  securityGroupId: string | core.StringOut;

  subnetId: string | core.StringOut;
}

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

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

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

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

  @core.attr(NetworkInterfaces, { computed: true, kind: "array" })
  public networkInterfaces!:
    | core.Array<NetworkInterfaces>
    | core.ArrayOut<NetworkInterfaces>;

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

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

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

  constructor(name: string, args?: EndpointArgs) {
    super(name, "aws_s3outposts_endpoint", args);
  }

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