ByoIpPrefix

class ByoIpPrefix : KotlinCustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleByoIpPrefix = new cloudflare.ByoIpPrefix("example_byo_ip_prefix", {
accountId: "258def64c72dae45f3e4c8516e2111f2",
asn: 209242,
cidr: "192.0.2.0/24",
loaDocumentId: "d933b1530bc56c9953cf8ce166da8004",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_byo_ip_prefix = cloudflare.ByoIpPrefix("example_byo_ip_prefix",
account_id="258def64c72dae45f3e4c8516e2111f2",
asn=209242,
cidr="192.0.2.0/24",
loa_document_id="d933b1530bc56c9953cf8ce166da8004")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleByoIpPrefix = new Cloudflare.ByoIpPrefix("example_byo_ip_prefix", new()
{
AccountId = "258def64c72dae45f3e4c8516e2111f2",
Asn = 209242,
Cidr = "192.0.2.0/24",
LoaDocumentId = "d933b1530bc56c9953cf8ce166da8004",
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewByoIpPrefix(ctx, "example_byo_ip_prefix", &cloudflare.ByoIpPrefixArgs{
AccountId: pulumi.String("258def64c72dae45f3e4c8516e2111f2"),
Asn: pulumi.Int(209242),
Cidr: pulumi.String("192.0.2.0/24"),
LoaDocumentId: pulumi.String("d933b1530bc56c9953cf8ce166da8004"),
})
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 exampleByoIpPrefix = new ByoIpPrefix("exampleByoIpPrefix", ByoIpPrefixArgs.builder()
.accountId("258def64c72dae45f3e4c8516e2111f2")
.asn(209242)
.cidr("192.0.2.0/24")
.loaDocumentId("d933b1530bc56c9953cf8ce166da8004")
.build());
}
}
resources:
exampleByoIpPrefix:
type: cloudflare:ByoIpPrefix
name: example_byo_ip_prefix
properties:
accountId: 258def64c72dae45f3e4c8516e2111f2
asn: 209242
cidr: 192.0.2.0/24
loaDocumentId: d933b1530bc56c9953cf8ce166da8004

Import

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

Properties

Link copied to clipboard
val accountId: Output<String>

Identifier of a Cloudflare account.

Link copied to clipboard
val advertised: Output<Boolean>

Prefix advertisement status to the Internet. This field is only not 'null' if on demand is enabled.

Link copied to clipboard

Last time the advertisement status was changed. This field is only not 'null' if on demand is enabled.

Link copied to clipboard
val approved: Output<String>

Approval state of the prefix (P = pending, V = active).

Link copied to clipboard
val asn: Output<Int>

Autonomous System Number (ASN) the prefix will be advertised under.

Link copied to clipboard
val cidr: Output<String>

IP Prefix in Classless Inter-Domain Routing format.

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

Description of the prefix.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val loaDocumentId: Output<String>

Identifier for the uploaded LOA document.

Link copied to clipboard
val modifiedAt: Output<String>
Link copied to clipboard

Whether advertisement of the prefix to the Internet may be dynamically enabled or disabled.

Link copied to clipboard
val onDemandLocked: Output<Boolean>

Whether advertisement status of the prefix is locked, meaning it cannot be changed.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>