reset_instance_attribute¶
Operation¶
reset_instance_attribute
async
¶
reset_instance_attribute(request: ResetInstanceAttributeInput | ResetInstanceAttributeInputDict, /, *, plugins: list[Plugin] | None = None) -> ResetInstanceAttributeOutput
reset_instance_attribute(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[ResetInstanceAttributeInputDict]) -> ResetInstanceAttributeOutput
Resets an attribute of an instance to its default value. To reset the
kernel or ramdisk, the instance must be in a stopped state. To reset
the sourceDestCheck, the instance can be either running or stopped.
The sourceDestCheck attribute controls whether source/destination
checking is enabled. The default value is true, which means checking
is enabled. This value must be false for a NAT instance to perform
NAT. For more information, see NAT
instances
in the Amazon VPC User Guide.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
ResetInstanceAttributeOutput
|
An instance of |
Input¶
Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.
Model¶
ResetInstanceAttributeInput
dataclass
¶
Bases: _SerdeShape
Dataclass for ResetInstanceAttributeInput structure.
Attributes¶
attribute
class-attribute
instance-attribute
¶
attribute: str | None = ...
The attribute to reset.
Warning
You can only reset the following attributes: kernel | ramdisk |
sourceDestCheck.
dry_run
class-attribute
instance-attribute
¶
dry_run: bool | None = ...
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.
Dictionaries¶
ResetInstanceAttributeInputDict
¶
Bases: TypedDict
Dictionary form of ResetInstanceAttributeInput.
Attributes¶
attribute
instance-attribute
¶
The attribute to reset.
Warning
You can only reset the following attributes: kernel | ramdisk |
sourceDestCheck.
dry_run
instance-attribute
¶
dry_run: bool | None
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.
Output¶
ResetInstanceAttributeOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for ResetInstanceAttributeOutput structure.