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

export interface PublishingDestinationArgs extends core.ResourceArgs {
  destinationArn: string | core.StringOut;

  destinationType?: string | core.StringOut;

  detectorId: string | core.StringOut;

  kmsKeyArn: string | core.StringOut;
}

export class PublishingDestination extends core.Resource<PublishingDestinationArgs> {
  @core.attr(String)
  public destinationArn!: string | core.StringOut;

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

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

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

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

  constructor(name: string, args?: PublishingDestinationArgs) {
    super(name, "aws_guardduty_publishing_destination", args);
  }

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