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

export interface AgentArgs extends core.ResourceArgs {
  activationKey?: string | core.StringOut;

  ipAddress?: string | core.StringOut;

  name?: string | core.StringOut;

  privateLinkEndpoint?: string | core.StringOut;

  securityGroupArns?: core.Array<string> | core.ArrayOut<core.StringOut>;

  subnetArns?: core.Array<string> | core.ArrayOut<core.StringOut>;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  vpcEndpointId?: string | core.StringOut;
}

export class Agent extends core.Resource<AgentArgs> {
  @core.attr(String, { computed: true })
  public activationKey?: string | core.StringOut;

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

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

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

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

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

  @core.attr(String, { kind: "array" })
  public securityGroupArns?: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String, { kind: "array" })
  public subnetArns?: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

  constructor(name: string, args?: AgentArgs) {
    super(name, "aws_datasync_agent", args);
  }

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