Skip to content

CreateHostedConfigurationVersionRequest

Source code in docs_src/capo_appconfig/types/create_hosted_configuration_version_request.py
class CreateHostedConfigurationVersionRequest(TypedDict, closed=True):
    application_id: "capo_appconfig.types.name.Name"
    """<p>The application ID.</p>"""
    configuration_profile_id: "capo_appconfig.types.long_name.LongName"
    """<p>The configuration profile ID.</p>"""
    description: NotRequired["capo_appconfig.types.description.Description"]
    """<p>A description of the configuration.</p> <note> <p>Due to HTTP limitations, this field only supports ASCII characters.</p> </note>"""
    content: "capo_appconfig.types.blob.Blob"
    """<p>The configuration data, as bytes.</p> <note> <p>AppConfig accepts any type of data, including text formats like JSON or TOML, or binary formats like protocol buffers or compressed data.</p> </note>"""
    content_type: "capo_appconfig.types.string_with_length_between1_and255.StringWithLengthBetween1And255"
    """<p>A standard MIME type describing the format of the configuration content. For more information, see <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>"""
    latest_version_number: NotRequired["capo_appconfig.types.integer.Integer"]
    """<p>An optional locking token used to prevent race conditions from overwriting configuration updates when creating a new version. To ensure your data is not overwritten when creating multiple hosted configuration versions in rapid succession, specify the version number of the latest hosted configuration version.</p>"""
    version_label: NotRequired["capo_appconfig.types.version_label.VersionLabel"]
    """<p>An optional, user-defined label for the AppConfig hosted configuration version. This value must contain at least one non-numeric character. For example, "v2.2.0".</p>"""

application_id instance-attribute

application_id: Name

The application ID.

configuration_profile_id instance-attribute

configuration_profile_id: LongName

The configuration profile ID.

content instance-attribute

content: Blob

The configuration data, as bytes.

AppConfig accepts any type of data, including text formats like JSON or TOML, or binary formats like protocol buffers or compressed data.

content_type instance-attribute

A standard MIME type describing the format of the configuration content. For more information, see Content-Type.

description instance-attribute

description: NotRequired[Description]

A description of the configuration.

Due to HTTP limitations, this field only supports ASCII characters.

latest_version_number instance-attribute

latest_version_number: NotRequired[Integer]

An optional locking token used to prevent race conditions from overwriting configuration updates when creating a new version. To ensure your data is not overwritten when creating multiple hosted configuration versions in rapid succession, specify the version number of the latest hosted configuration version.

version_label instance-attribute

version_label: NotRequired[VersionLabel]

An optional, user-defined label for the AppConfig hosted configuration version. This value must contain at least one non-numeric character. For example, "v2.2.0".