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

export interface RoleAliasArgs extends core.ResourceArgs {
  alias: string | core.StringOut;

  credentialDuration?: number | core.NumberOut;

  roleArn: string | core.StringOut;
}

export class RoleAlias extends core.Resource<RoleAliasArgs> {
  @core.attr(String)
  public alias!: string | core.StringOut;

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

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

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

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

  constructor(name: string, args?: RoleAliasArgs) {
    super(name, "aws_iot_role_alias", args);
  }

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