modify_volume_attribute¶
Operation¶
modify_volume_attribute
async
¶
modify_volume_attribute(request: ModifyVolumeAttributeInput | ModifyVolumeAttributeInputDict, /, *, plugins: list[Plugin] | None = None) -> ModifyVolumeAttributeOutput
modify_volume_attribute(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[ModifyVolumeAttributeInputDict]) -> ModifyVolumeAttributeOutput
Modifies a volume attribute.
By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.
You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.
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 |
|---|---|
ModifyVolumeAttributeOutput
|
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¶
ModifyVolumeAttributeInput
dataclass
¶
Bases: _SerdeShape
Dataclass for ModifyVolumeAttributeInput structure.
Attributes¶
auto_enable_io
class-attribute
instance-attribute
¶
auto_enable_io: AttributeBooleanValue | None = ...
Indicates whether the volume should be auto-enabled for I/O operations.
dry_run
class-attribute
instance-attribute
¶
dry_run: bool | None = ...
Checks whether you have the required permissions for the action, 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¶
ModifyVolumeAttributeInputDict
¶
Bases: TypedDict
Dictionary form of ModifyVolumeAttributeInput.
Attributes¶
auto_enable_io
instance-attribute
¶
auto_enable_io: AttributeBooleanValue | AttributeBooleanValueDict | None
Indicates whether the volume should be auto-enabled for I/O operations.
dry_run
instance-attribute
¶
dry_run: bool | None
Checks whether you have the required permissions for the action, 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¶
ModifyVolumeAttributeOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for ModifyVolumeAttributeOutput structure.