Public Advertised Prefix Args
data class PublicAdvertisedPrefixArgs(val description: Output<String>? = null, val dnsVerificationIp: Output<String>? = null, val ipCidrRange: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<PublicAdvertisedPrefixArgs>
Represents a PublicAdvertisedPrefix for use with bring your own IP addresses (BYOIP). To get more information about PublicAdvertisedPrefix, see:
How-to Guides
Example Usage
Public Advertised Prefixes Basic
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.PublicAdvertisedPrefix;
import com.pulumi.gcp.compute.PublicAdvertisedPrefixArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var prefixes = new PublicAdvertisedPrefix("prefixes", PublicAdvertisedPrefixArgs.builder()
.description("description")
.dnsVerificationIp("127.127.0.0")
.ipCidrRange("127.127.0.0/16")
.build());
}
}
Content copied to clipboard
Import
PublicAdvertisedPrefix can be imported using any of these accepted formats
$ pulumi import gcp:compute/publicAdvertisedPrefix:PublicAdvertisedPrefix default projects/{{project}}/global/publicAdvertisedPrefixes/{{name}}
Content copied to clipboard
$ pulumi import gcp:compute/publicAdvertisedPrefix:PublicAdvertisedPrefix default {{project}}/{{name}}
Content copied to clipboard
$ pulumi import gcp:compute/publicAdvertisedPrefix:PublicAdvertisedPrefix default {{name}}
Content copied to clipboard
Constructors
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.