class-validator-extended - v4.2.0
    Preparing search index...

    Function IsAwsRegion

    • Checks if the given value is an AWS region string.

      Beware that this decorator only checks for syntactic validity, it does not check if the region really exists. For instance, it will accept eu-central-9 which - at the time of writing - does not exist.

      // Ensure the value is a valid looking AWS region
      @IsAwsRegion()
      region: string = 'eu-central-1'

      Parameters

      • Optionaloptions: ValidationOptions

        Generic class-validator options.

      Returns PropertyDecorator