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

export interface MediaStoreContainerPolicyArgs extends core.ResourceArgs {
  containerName: string | core.StringOut;

  policy: string | core.StringOut;
}

export class MediaStoreContainerPolicy extends core.Resource<MediaStoreContainerPolicyArgs> {
  @core.attr(String)
  public containerName!: string | core.StringOut;

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

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

  constructor(name: string, args?: MediaStoreContainerPolicyArgs) {
    super(name, "aws_media_store_container_policy", args);
  }

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