SpectrumApplication

class SpectrumApplication : KotlinCustomResource

Provides a Cloudflare Spectrum Application. You can extend the power of Cloudflare's DDoS, TLS, and IP Firewall to your other TCP-based services.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.SpectrumApplication;
import com.pulumi.cloudflare.SpectrumApplicationArgs;
import com.pulumi.cloudflare.inputs.SpectrumApplicationDnsArgs;
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 SpectrumApplication("example", SpectrumApplicationArgs.builder()
.dns(SpectrumApplicationDnsArgs.builder()
.name("ssh.example.com")
.type("CNAME")
.build())
.originDirects("tcp://192.0.2.1:22")
.protocol("tcp/22")
.trafficType("direct")
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.build());
}
}

Import

$ pulumi import cloudflare:index/spectrumApplication:SpectrumApplication example <zone_id>/<spectrum_application_id>

Properties

Link copied to clipboard

Enables Argo Smart Routing. Defaults to false.

Link copied to clipboard

The name and type of DNS record for the Spectrum application.

Link copied to clipboard

Choose which types of IP addresses will be provisioned for this subdomain. Available values: all, ipv4, ipv6.

Link copied to clipboard
val edgeIps: Output<List<String>>?

A list of edge IPs (IPv4 and/or IPv6) to configure Spectrum application to. Requires Bring Your Own IP provisioned.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ipFirewall: Output<Boolean>?

Enables the IP Firewall for this application. Defaults to true.

Link copied to clipboard
val originDirects: Output<List<String>>?

A list of destination addresses to the origin. e.g. tcp://192.0.2.1:22.

Link copied to clipboard

A destination DNS addresses to the origin.

Link copied to clipboard
val originPort: Output<Int>?

Origin port to proxy traffice to. Conflicts with origin_port_range.

Link copied to clipboard

Origin port range to proxy traffice to. When using a range, the protocol field must also specify a range, e.g. tcp/22-23. Conflicts with origin_port.

Link copied to clipboard
val protocol: Output<String>

The port configuration at Cloudflare’s edge. e.g. tcp/22.

Link copied to clipboard
val proxyProtocol: Output<String>?

Enables a proxy protocol to the origin. Available values: off, v1, v2, simple. Defaults to off.

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

TLS configuration option for Cloudflare to connect to your origin. Available values: off, flexible, full, strict. Defaults to off.

Link copied to clipboard
val trafficType: Output<String>?

Sets application type. Available values: direct, http, https. Defaults to direct.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val zoneId: Output<String>

The zone identifier to target for the resource.