Skip to content

Attribute

Source code in docs_src/capo_ecs/types/attribute.py
class Attribute(TypedDict, closed=True):
    name: "capo_ecs.types.string.String"
    r"""<p>The name of the attribute. The <code>name</code> must contain between 1 and 128 characters. The name may contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), forward slashes (/), back slashes (\), or periods (.).</p>"""
    value: NotRequired["capo_ecs.types.string.String"]
    r"""<p>The value of the attribute. The <code>value</code> must contain between 1 and 128 characters. It can contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), periods (.), at signs (@), forward slashes (/), back slashes (\), colons (:), or spaces. The value can't start or end with a space.</p>"""
    target_type: NotRequired["capo_ecs.types.target_type.TargetType"]
    """<p>The type of the target to attach the attribute with. This parameter is required if you use the short form ID for a resource instead of the full ARN.</p>"""
    target_id: NotRequired["capo_ecs.types.string.String"]
    """<p>The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN).</p>"""

name instance-attribute

name: String

The name of the attribute. The name must contain between 1 and 128 characters. The name may contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), forward slashes (/), back slashes (\), or periods (.).

target_id instance-attribute

target_id: NotRequired[String]

The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN).

target_type instance-attribute

target_type: NotRequired[TargetType]

The type of the target to attach the attribute with. This parameter is required if you use the short form ID for a resource instead of the full ARN.

value instance-attribute

value: NotRequired[String]

The value of the attribute. The value must contain between 1 and 128 characters. It can contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), periods (.), at signs (@), forward slashes (/), back slashes (\), colons (:), or spaces. The value can't start or end with a space.