Expand description
Represents a PublicAdvertisedPrefix for use with bring your own IP addresses (BYOIP).
To get more information about PublicAdvertisedPrefix, see:
- API documentation
- How-to Guides
§Example Usage
§Public Advertised Prefixes Basic
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let prefixes = public_advertised_prefix::create(
"prefixes",
PublicAdvertisedPrefixArgs::builder()
.description("description")
.dns_verification_ip("127.127.0.0")
.ip_cidr_range("127.127.0.0/16")
.name("my-prefix")
.build_struct(),
);
}
§Import
PublicAdvertisedPrefix can be imported using any of these accepted formats:
-
projects/{{project}}/global/publicAdvertisedPrefixes/{{name}}
-
{{project}}/{{name}}
-
{{name}}
When using the pulumi import
command, PublicAdvertisedPrefix can be imported using one of the formats above. For example:
$ pulumi import gcp:compute/publicAdvertisedPrefix:PublicAdvertisedPrefix default projects/{{project}}/global/publicAdvertisedPrefixes/{{name}}
$ pulumi import gcp:compute/publicAdvertisedPrefix:PublicAdvertisedPrefix default {{project}}/{{name}}
$ pulumi import gcp:compute/publicAdvertisedPrefix:PublicAdvertisedPrefix default {{name}}
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