Skip to content

StringSetting

Source code in docs_src/capo_cloudextensions/types/string_setting.py
class StringSetting(TypedDict, closed=True):
    default: NotRequired["capo_cloudextensions.types.string_1_256.String_1_256"]
    """The default value used when the deployer does not provide one."""
    format: NotRequired["capo_cloudextensions.types.format_type.FormatType"]
    """A named format constraint that implies additional validation (e.g. 'arn' or 'filepath')."""
    pattern: NotRequired["capo_cloudextensions.types.string_1_256.String_1_256"]
    """A regular expression the value must match."""
    enum: NotRequired["capo_cloudextensions.types.string_enum_list.StringEnumList"]
    """An explicit list of allowed values. The deployer must choose from this set."""
    min_length: NotRequired[
        "capo_cloudextensions.types.non_negative_integer.NonNegativeInteger"
    ]
    """The shortest length the value may have."""
    max_length: NotRequired[
        "capo_cloudextensions.types.non_negative_integer.NonNegativeInteger"
    ]
    """The longest length the value may have. Must be greater than 0 and at least minLength."""

default instance-attribute

default: NotRequired[String_1_256]

The default value used when the deployer does not provide one.

enum instance-attribute

enum: NotRequired[StringEnumList]

An explicit list of allowed values. The deployer must choose from this set.

format instance-attribute

format: NotRequired[FormatType]

A named format constraint that implies additional validation (e.g. 'arn' or 'filepath').

max_length instance-attribute

max_length: NotRequired[NonNegativeInteger]

The longest length the value may have. Must be greater than 0 and at least minLength.

min_length instance-attribute

min_length: NotRequired[NonNegativeInteger]

The shortest length the value may have.

pattern instance-attribute

pattern: NotRequired[String_1_256]

A regular expression the value must match.