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

export interface Ec2ClientVpnAuthorizationRuleArgs extends core.ResourceArgs {
  accessGroupId?: string | core.StringOut;

  authorizeAllGroups?: boolean | core.BooleanOut;

  clientVpnEndpointId: string | core.StringOut;

  description?: string | core.StringOut;

  targetNetworkCidr: string | core.StringOut;
}

export class Ec2ClientVpnAuthorizationRule extends core.Resource<Ec2ClientVpnAuthorizationRuleArgs> {
  @core.attr(String)
  public accessGroupId?: string | core.StringOut;

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

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

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

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

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

  constructor(name: string, args?: Ec2ClientVpnAuthorizationRuleArgs) {
    super(name, "aws_ec2_client_vpn_authorization_rule", args);
  }

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