Show / Hide Table of Contents

Class SpectrumApplication

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

using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

class MyStack : Stack
{
public MyStack()
{
    // Define a spectrum application proxies ssh traffic
    var sshProxy = new Cloudflare.SpectrumApplication("sshProxy", new Cloudflare.SpectrumApplicationArgs
    {
        ZoneId = @var.Cloudflare_zone_id,
        Protocol = "tcp/22",
        TrafficType = "direct",
        Dns = new Cloudflare.Inputs.SpectrumApplicationDnsArgs
        {
            Type = "CNAME",
            Name = "ssh.example.com",
        },
        OriginDirects = 
        {
            "tcp://109.151.40.129:22",
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
SpectrumApplication
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Cloudflare
Assembly: Pulumi.Cloudflare.dll
Syntax
public class SpectrumApplication : CustomResource

Constructors

View Source

SpectrumApplication(String, SpectrumApplicationArgs, CustomResourceOptions)

Create a SpectrumApplication resource with the given unique name, arguments, and options.

Declaration
public SpectrumApplication(string name, SpectrumApplicationArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

SpectrumApplicationArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

ArgoSmartRouting

. Enables Argo Smart Routing. Defaults to false.

Declaration
public Output<bool?> ArgoSmartRouting { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

Dns

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

Declaration
public Output<SpectrumApplicationDns> Dns { get; }
Property Value
Type Description
Output<SpectrumApplicationDns>
View Source

EdgeIpConnectivity

. Choose which types of IP addresses will be provisioned for this subdomain. Valid values are: all, ipv4, ipv6. Defaults to all.

Declaration
public Output<string> EdgeIpConnectivity { get; }
Property Value
Type Description
Output<System.String>
View Source

EdgeIps

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

Declaration
public Output<ImmutableArray<string>> EdgeIps { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

IpFirewall

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

Declaration
public Output<bool?> IpFirewall { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

OriginDirects

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

Declaration
public Output<ImmutableArray<string>> OriginDirects { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

OriginDns

A destination DNS addresses to the origin. Fields documented below.

Declaration
public Output<SpectrumApplicationOriginDns> OriginDns { get; }
Property Value
Type Description
Output<SpectrumApplicationOriginDns>
View Source

OriginPort

If using origin_dns this is a required attribute. Origin port to proxy traffice to e.g. 22.

Declaration
public Output<int?> OriginPort { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

Protocol

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

Declaration
public Output<string> Protocol { get; }
Property Value
Type Description
Output<System.String>
View Source

ProxyProtocol

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

Declaration
public Output<string> ProxyProtocol { get; }
Property Value
Type Description
Output<System.String>
View Source

Tls

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

Declaration
public Output<string> Tls { get; }
Property Value
Type Description
Output<System.String>
View Source

TrafficType

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

Declaration
public Output<string> TrafficType { get; }
Property Value
Type Description
Output<System.String>
View Source

ZoneId

The DNS zone ID to add the application to

Declaration
public Output<string> ZoneId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, SpectrumApplicationState, CustomResourceOptions)

Get an existing SpectrumApplication resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static SpectrumApplication Get(string name, Input<string> id, SpectrumApplicationState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

SpectrumApplicationState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
SpectrumApplication
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.