Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ParameterConstraints

import type { ParameterConstraints } from "https://aws-api.deno.dev/v0.4/services/servicecatalog.ts?docs=full";

The constraints that the administrator has put on the parameter.

interface ParameterConstraints {
AllowedPattern?: string | null;
AllowedValues?: string[] | null;
ConstraintDescription?: string | null;
MaxLength?: string | null;
MaxValue?: string | null;
MinLength?: string | null;
MinValue?: string | null;
}

§Properties

§
AllowedPattern?: string | null
[src]

A regular expression that represents the patterns that allow for String types. The pattern must match the entire parameter value provided.

§
AllowedValues?: string[] | null
[src]

The values that the administrator has allowed for the parameter.

§
ConstraintDescription?: string | null
[src]

A string that explains a constraint when the constraint is violated. For example, without a constraint description, a parameter that has an allowed pattern of [A-Za-z0-9]+ displays the following error message when the user specifies an invalid value:

Malformed input-Parameter MyParameter must match pattern [A-Za-z0-9]+

By adding a constraint description, such as must only contain letters (uppercase and lowercase) and numbers, you can display the following customized error message:

Malformed input-Parameter MyParameter must only contain uppercase and lowercase letters and numbers.
§
MaxLength?: string | null
[src]

An integer value that determines the largest number of characters you want to allow for String types.

§
MaxValue?: string | null
[src]

A numeric value that determines the largest numeric value you want to allow for Number types.

§
MinLength?: string | null
[src]

An integer value that determines the smallest number of characters you want to allow for String types.

§
MinValue?: string | null
[src]

A numeric value that determines the smallest numeric value you want to allow for Number types.