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

export interface TopicArgs extends core.ResourceArgs {
  applicationFailureFeedbackRoleArn?: string | core.StringOut;

  applicationSuccessFeedbackRoleArn?: string | core.StringOut;

  applicationSuccessFeedbackSampleRate?: number | core.NumberOut;

  contentBasedDeduplication?: boolean | core.BooleanOut;

  deliveryPolicy?: string | core.StringOut;

  displayName?: string | core.StringOut;

  fifoTopic?: boolean | core.BooleanOut;

  firehoseFailureFeedbackRoleArn?: string | core.StringOut;

  firehoseSuccessFeedbackRoleArn?: string | core.StringOut;

  firehoseSuccessFeedbackSampleRate?: number | core.NumberOut;

  httpFailureFeedbackRoleArn?: string | core.StringOut;

  httpSuccessFeedbackRoleArn?: string | core.StringOut;

  httpSuccessFeedbackSampleRate?: number | core.NumberOut;

  kmsMasterKeyId?: string | core.StringOut;

  lambdaFailureFeedbackRoleArn?: string | core.StringOut;

  lambdaSuccessFeedbackRoleArn?: string | core.StringOut;

  lambdaSuccessFeedbackSampleRate?: number | core.NumberOut;

  name?: string | core.StringOut;

  namePrefix?: string | core.StringOut;

  policy?: string | core.StringOut;

  sqsFailureFeedbackRoleArn?: string | core.StringOut;

  sqsSuccessFeedbackRoleArn?: string | core.StringOut;

  sqsSuccessFeedbackSampleRate?: number | core.NumberOut;

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

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

export class Topic extends core.Resource<TopicArgs> {
  @core.attr(String)
  public applicationFailureFeedbackRoleArn?: string | core.StringOut;

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

  @core.attr(Number)
  public applicationSuccessFeedbackSampleRate?: number | core.NumberOut;

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

  @core.attr(Boolean)
  public contentBasedDeduplication?: boolean | core.BooleanOut;

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

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

  @core.attr(Boolean)
  public fifoTopic?: boolean | core.BooleanOut;

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

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

  @core.attr(Number)
  public firehoseSuccessFeedbackSampleRate?: number | core.NumberOut;

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

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

  @core.attr(Number)
  public httpSuccessFeedbackSampleRate?: number | core.NumberOut;

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

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

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

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

  @core.attr(Number)
  public lambdaSuccessFeedbackSampleRate?: number | core.NumberOut;

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

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

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

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

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

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

  @core.attr(Number)
  public sqsSuccessFeedbackSampleRate?: number | core.NumberOut;

  @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>;

  constructor(name: string, args?: TopicArgs) {
    super(name, "aws_sns_topic", args);
  }

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