PublicAdvertisedPrefixArgs

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:

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());
}
}

Import

PublicAdvertisedPrefix can be imported using any of these accepted formats

$ 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}}

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, dnsVerificationIp: Output<String>? = null, ipCidrRange: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

An optional description of this resource.

Link copied to clipboard
val dnsVerificationIp: Output<String>? = null

The IPv4 address to be used for reverse DNS verification.

Link copied to clipboard
val ipCidrRange: Output<String>? = null

The IPv4 address range, in CIDR format, represented by this public advertised prefix.

Link copied to clipboard
val name: Output<String>? = null

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.

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Functions

Link copied to clipboard
open override fun toJava(): PublicAdvertisedPrefixArgs