Expand description
Provides an EC2 Host resource. This allows Dedicated Hosts to be allocated, modified, and released.
§Example Usage
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let test = dedicated_host::create(
"test",
DedicatedHostArgs::builder()
.auto_placement("on")
.availability_zone("us-west-2a")
.host_recovery("on")
.instance_type("c5.18xlarge")
.build_struct(),
);
}
§Import
Using pulumi import
, import hosts using the host id
. For example:
$ pulumi import aws:ec2/dedicatedHost:DedicatedHost example h-0385a99d0e4b20cbb
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments