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

export interface TargetArgs extends core.SchemaArgs {
  id: string | core.StringOut;

  type?: string | core.StringOut;
}

export class Target extends core.Schema<TargetArgs> {
  @core.attr(String)
  public id!: string | core.StringOut;

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

export interface DirectoryServiceSharedDirectoryArgs extends core.ResourceArgs {
  directoryId: string | core.StringOut;

  method?: string | core.StringOut;

  notes?: string | core.StringOut;

  target: Target;
}

export class DirectoryServiceSharedDirectory extends core.Resource<DirectoryServiceSharedDirectoryArgs> {
  @core.attr(String)
  public directoryId!: string | core.StringOut;

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

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

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

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

  @core.attr(Target)
  public target!: Target;

  constructor(name: string, args?: DirectoryServiceSharedDirectoryArgs) {
    super(name, "aws_directory_service_shared_directory", args);
  }

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