Upstream

Create a Upstream Resource

def Upstream(resource_name, opts=None, hash_fallback=None, hash_fallback_header=None, hash_on=None, hash_on_cookie=None, hash_on_cookie_path=None, hash_on_header=None, healthchecks=None, name=None, slots=None, __props__=None);
func NewUpstream(ctx *Context, name string, args *UpstreamArgs, opts ...ResourceOption) (*Upstream, error)
public Upstream(string name, UpstreamArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args UpstreamArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args UpstreamArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args UpstreamArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Upstream Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Upstream resource accepts the following input properties:

HashFallback string
HashFallbackHeader string
HashOn string
HashOnCookie string
HashOnCookiePath string
HashOnHeader string
Healthchecks UpstreamHealthchecksArgs
Name string
Slots int
HashFallback string
HashFallbackHeader string
HashOn string
HashOnCookie string
HashOnCookiePath string
HashOnHeader string
Healthchecks UpstreamHealthchecks
Name string
Slots int
hashFallback string
hashFallbackHeader string
hashOn string
hashOnCookie string
hashOnCookiePath string
hashOnHeader string
healthchecks UpstreamHealthchecks
name string
slots number
hash_fallback str
hash_fallback_header str
hash_on str
hash_on_cookie str
hash_on_cookie_path str
hash_on_header str
healthchecks Dict[UpstreamHealthchecks]
name str
slots float

Outputs

All input properties are implicitly available as output properties. Additionally, the Upstream resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Upstream Resource

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

public static get(name: string, id: Input<ID>, state?: UpstreamState, opts?: CustomResourceOptions): Upstream
static get(resource_name, id, opts=None, hash_fallback=None, hash_fallback_header=None, hash_on=None, hash_on_cookie=None, hash_on_cookie_path=None, hash_on_header=None, healthchecks=None, name=None, slots=None, __props__=None);
func GetUpstream(ctx *Context, name string, id IDInput, state *UpstreamState, opts ...ResourceOption) (*Upstream, error)
public static Upstream Get(string name, Input<string> id, UpstreamState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

HashFallback string
HashFallbackHeader string
HashOn string
HashOnCookie string
HashOnCookiePath string
HashOnHeader string
Healthchecks UpstreamHealthchecksArgs
Name string
Slots int
HashFallback string
HashFallbackHeader string
HashOn string
HashOnCookie string
HashOnCookiePath string
HashOnHeader string
Healthchecks UpstreamHealthchecks
Name string
Slots int
hashFallback string
hashFallbackHeader string
hashOn string
hashOnCookie string
hashOnCookiePath string
hashOnHeader string
healthchecks UpstreamHealthchecks
name string
slots number
hash_fallback str
hash_fallback_header str
hash_on str
hash_on_cookie str
hash_on_cookie_path str
hash_on_header str
healthchecks Dict[UpstreamHealthchecks]
name str
slots float

Supporting Types

UpstreamHealthchecks

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Active UpstreamHealthchecksActiveArgs
Passive UpstreamHealthchecksPassiveArgs
Active UpstreamHealthchecksActive
Passive UpstreamHealthchecksPassive
active UpstreamHealthchecksActive
passive UpstreamHealthchecksPassive
active Dict[UpstreamHealthchecksActive]
passive Dict[UpstreamHealthchecksPassive]

UpstreamHealthchecksActive

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Concurrency int
Healthy UpstreamHealthchecksActiveHealthyArgs
HttpPath string
HttpsSni string
HttpsVerifyCertificate bool
Timeout int
Type string
Unhealthy UpstreamHealthchecksActiveUnhealthyArgs
Concurrency int
Healthy UpstreamHealthchecksActiveHealthy
HttpPath string
HttpsSni string
HttpsVerifyCertificate bool
Timeout int
Type string
Unhealthy UpstreamHealthchecksActiveUnhealthy
concurrency number
healthy UpstreamHealthchecksActiveHealthy
httpPath string
httpsSni string
httpsVerifyCertificate boolean
timeout number
type string
unhealthy UpstreamHealthchecksActiveUnhealthy
concurrency float
healthy Dict[UpstreamHealthchecksActiveHealthy]
httpPath str
httpsSni str
httpsVerifyCertificate bool
timeout float
type str
unhealthy Dict[UpstreamHealthchecksActiveUnhealthy]

UpstreamHealthchecksActiveHealthy

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

HttpStatuses List<int>
Interval int
Successes int
HttpStatuses []int
Interval int
Successes int
httpStatuses number[]
interval number
successes number
httpStatuses List[Integer]
interval float
successes float

UpstreamHealthchecksActiveUnhealthy

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

HttpFailures int
HttpStatuses List<int>
Interval int
TcpFailures int
Timeouts int
HttpFailures int
HttpStatuses []int
Interval int
TcpFailures int
Timeouts int
httpFailures number
httpStatuses number[]
interval number
tcpFailures number
timeouts number
httpFailures float
httpStatuses List[Integer]
interval float
tcpFailures float
timeouts float

UpstreamHealthchecksPassive

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Healthy UpstreamHealthchecksPassiveHealthyArgs
Type string
Unhealthy UpstreamHealthchecksPassiveUnhealthyArgs
Healthy UpstreamHealthchecksPassiveHealthy
Type string
Unhealthy UpstreamHealthchecksPassiveUnhealthy
healthy UpstreamHealthchecksPassiveHealthy
type string
unhealthy UpstreamHealthchecksPassiveUnhealthy
healthy Dict[UpstreamHealthchecksPassiveHealthy]
type str
unhealthy Dict[UpstreamHealthchecksPassiveUnhealthy]

UpstreamHealthchecksPassiveHealthy

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

HttpStatuses List<int>
Successes int
HttpStatuses []int
Successes int
httpStatuses number[]
successes number
httpStatuses List[Integer]
successes float

UpstreamHealthchecksPassiveUnhealthy

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

HttpFailures int
HttpStatuses List<int>
TcpFailures int
Timeouts int
HttpFailures int
HttpStatuses []int
TcpFailures int
Timeouts int
httpFailures number
httpStatuses number[]
tcpFailures number
timeouts number
httpFailures float
httpStatuses List[Integer]
tcpFailures float
timeouts float

Package Details

Repository
https://github.com/pulumi/pulumi-kong
License
Apache-2.0
Notes
This Pulumi package is based on the kong Terraform Provider.