Skip to content

PreferredResource

Source code in docs_src/capo_compute_optimizer/types/preferred_resource.py
class PreferredResource(TypedDict, closed=True):
    name: NotRequired[
        "capo_compute_optimizer.types.preferred_resource_name.PreferredResourceName"
    ]
    """<p> The type of preferred resource to customize. </p> <note> <p>Compute Optimizer only supports the customization of <code>Ec2InstanceTypes</code>.</p> </note>"""
    include_list: NotRequired[
        "capo_compute_optimizer.types.preferred_resource_values.PreferredResourceValues"
    ]
    """<p> The preferred resource type values to include in the recommendation candidates. You can specify the exact resource type value, such as m5.large, or use wild card expressions, such as m5. If this isn’t specified, all supported resources are included by default. You can specify up to 1000 values in this list. </p>"""
    exclude_list: NotRequired[
        "capo_compute_optimizer.types.preferred_resource_values.PreferredResourceValues"
    ]
    """<p> The preferred resource type values to exclude from the recommendation candidates. If this isn’t specified, all supported resources are included by default. You can specify up to 1000 values in this list. </p>"""

exclude_list instance-attribute

exclude_list: NotRequired[PreferredResourceValues]

The preferred resource type values to exclude from the recommendation candidates. If this isn’t specified, all supported resources are included by default. You can specify up to 1000 values in this list.

include_list instance-attribute

include_list: NotRequired[PreferredResourceValues]

The preferred resource type values to include in the recommendation candidates. You can specify the exact resource type value, such as m5.large, or use wild card expressions, such as m5. If this isn’t specified, all supported resources are included by default. You can specify up to 1000 values in this list.

name instance-attribute

name: NotRequired[PreferredResourceName]

The type of preferred resource to customize.

Compute Optimizer only supports the customization of Ec2InstanceTypes.