ByoIpPrefixArgs

data class ByoIpPrefixArgs(val accountId: Output<String>? = null, val advertisement: Output<String>? = null, val description: Output<String>? = null, val prefixId: Output<String>? = null) : ConvertibleToJava<ByoIpPrefixArgs>

Provides the ability to manage Bring-Your-Own-IP prefixes (BYOIP) which are used with or without Magic Transit.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = new cloudflare.ByoIpPrefix("example", {
accountId: "f037e56e89293a057740de681ac9abbe",
prefixId: "d41d8cd98f00b204e9800998ecf8427e",
description: "Example IP Prefix",
advertisement: "on",
});
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.ByoIpPrefix("example",
account_id="f037e56e89293a057740de681ac9abbe",
prefix_id="d41d8cd98f00b204e9800998ecf8427e",
description="Example IP Prefix",
advertisement="on")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var example = new Cloudflare.ByoIpPrefix("example", new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
PrefixId = "d41d8cd98f00b204e9800998ecf8427e",
Description = "Example IP Prefix",
Advertisement = "on",
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewByoIpPrefix(ctx, "example", &cloudflare.ByoIpPrefixArgs{
AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
PrefixId: pulumi.String("d41d8cd98f00b204e9800998ecf8427e"),
Description: pulumi.String("Example IP Prefix"),
Advertisement: pulumi.String("on"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ByoIpPrefix;
import com.pulumi.cloudflare.ByoIpPrefixArgs;
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 example = new ByoIpPrefix("example", ByoIpPrefixArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.prefixId("d41d8cd98f00b204e9800998ecf8427e")
.description("Example IP Prefix")
.advertisement("on")
.build());
}
}
resources:
example:
type: cloudflare:ByoIpPrefix
properties:
accountId: f037e56e89293a057740de681ac9abbe
prefixId: d41d8cd98f00b204e9800998ecf8427e
description: Example IP Prefix
advertisement: on

Import

$ pulumi import cloudflare:index/byoIpPrefix:ByoIpPrefix example <account_id>/<prefix_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, advertisement: Output<String>? = null, description: Output<String>? = null, prefixId: Output<String>? = null)

Properties

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

The account identifier to target for the resource.

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

Whether or not the prefix shall be announced. A prefix can be activated or deactivated once every 15 minutes (attempting more regular updates will trigger rate limiting). Available values: on, off.

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

Description of the BYO IP prefix.

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

The assigned Bring-Your-Own-IP prefix ID. Modifying this attribute will force creation of a new resource.

Functions

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