Expand description
Provides a subnet CIDR reservation resource.
§Example Usage
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let example = subnet_cidr_reservation::create(
"example",
SubnetCidrReservationArgs::builder()
.cidr_block("10.0.0.16/28")
.reservation_type("prefix")
.subnet_id("${exampleAwsSubnet.id}")
.build_struct(),
);
}
§Import
Using pulumi import
, import Existing CIDR reservations using SUBNET_ID:RESERVATION_ID
. For example:
$ pulumi import aws:ec2/subnetCidrReservation:SubnetCidrReservation example subnet-01llsxvsxabqiymcz:scr-4mnvz6wb7otksjcs9
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