Skip to content

Target

Source code in docs_src/capo_ssm/types/target.py
class Target(TypedDict, closed=True):
    key: NotRequired["capo_ssm.types.target_key.TargetKey"]
    """<p>User-defined criteria for sending commands that target managed nodes that meet the criteria.</p>"""
    values: NotRequired["capo_ssm.types.target_values.TargetValues"]
    """<p>User-defined criteria that maps to <code>Key</code>. For example, if you specified <code>tag:ServerRole</code>, you could specify <code>value:WebServer</code> to run a command on instances that include EC2 tags of <code>ServerRole,WebServer</code>. </p> <p>Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.</p>"""

key instance-attribute

key: NotRequired[TargetKey]

User-defined criteria for sending commands that target managed nodes that meet the criteria.

values instance-attribute

values: NotRequired[TargetValues]

User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer.

Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.