Skip to content

ModifyInstanceCpuOptionsRequest

Source code in docs_src/capo_ec2/types/modify_instance_cpu_options_request.py
class ModifyInstanceCpuOptionsRequest(TypedDict, closed=True):
    instance_id: NotRequired["capo_ec2.types.instance_id.InstanceId"]
    """<p>The ID of the instance to update.</p>"""
    core_count: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>The number of CPU cores to activate for the specified instance.</p>"""
    threads_per_core: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>The number of threads to run for each CPU core.</p>"""
    nested_virtualization: NotRequired[
        "capo_ec2.types.nested_virtualization_specification.NestedVirtualizationSpecification"
    ]
    """<p>Indicates whether to enable or disable nested virtualization for the instance. When nested virtualization is enabled, Virtual Secure Mode (VSM) is automatically disabled for the instance.</p>"""
    dry_run: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"""

core_count instance-attribute

core_count: NotRequired[Integer]

The number of CPU cores to activate for the specified instance.

dry_run instance-attribute

dry_run: NotRequired[Boolean]

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

instance_id instance-attribute

instance_id: NotRequired[InstanceId]

The ID of the instance to update.

nested_virtualization instance-attribute

nested_virtualization: NotRequired[NestedVirtualizationSpecification]

Indicates whether to enable or disable nested virtualization for the instance. When nested virtualization is enabled, Virtual Secure Mode (VSM) is automatically disabled for the instance.

threads_per_core instance-attribute

threads_per_core: NotRequired[Integer]

The number of threads to run for each CPU core.