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

export interface PlatformApplicationArgs extends core.ResourceArgs {
  eventDeliveryFailureTopicArn?: string | core.StringOut;

  eventEndpointCreatedTopicArn?: string | core.StringOut;

  eventEndpointDeletedTopicArn?: string | core.StringOut;

  eventEndpointUpdatedTopicArn?: string | core.StringOut;

  failureFeedbackRoleArn?: string | core.StringOut;

  name: string | core.StringOut;

  platform: string | core.StringOut;

  platformCredential: string | core.StringOut;

  platformPrincipal?: string | core.StringOut;

  successFeedbackRoleArn?: string | core.StringOut;

  successFeedbackSampleRate?: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: PlatformApplicationArgs) {
    super(name, "aws_sns_platform_application", args);
  }

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