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

export interface PoolProviderPrincipalTagArgs extends core.ResourceArgs {
  identityPoolId: string | core.StringOut;

  identityProviderName: string | core.StringOut;

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

  useDefaults?: boolean | core.BooleanOut;
}

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

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

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

  @core.attr(String, { kind: "map" })
  public principalTags?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

  constructor(name: string, args?: PoolProviderPrincipalTagArgs) {
    super(name, "aws_cognito_identity_pool_provider_principal_tag", args);
  }

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