InstanceStateArgs constructor
const
InstanceStateArgs({})
Creates a new InstanceStateArgs.
force Whether to request a forced stop when state is stopped. Otherwise (i.e., state is running), ignored. When an instance is forced to stop, it does not flush file system caches or file system metadata, and you must subsequently perform file system check and repair. Not recommended for Windows instances. Defaults to false.
instanceId ID of the instance.
region Region where this resource will be managed. Defaults to the Region set in the provider configuration.
state State of the instance. Valid values are stopped, running.
Implementation
const InstanceStateArgs({
this.force,
required this.instanceId,
this.region,
required this.state,
});