@Generated(value="jsii-pacmak/1.13.0 (build 385c325)", date="2020-10-21T06:58:44.663Z") @Stability(value=Experimental) public class Ingress extends Resource
An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.
| Modifier and Type | Class and Description |
|---|---|
static class |
Ingress.Builder
(experimental) A fluent builder for
Ingress. |
| Modifier | Constructor and Description |
|---|---|
|
Ingress(software.constructs.Construct scope,
String id) |
|
Ingress(software.constructs.Construct scope,
String id,
IngressProps props) |
protected |
Ingress(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Ingress(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultBackend(IngressBackend backend)
(experimental) Defines the default backend for this ingress.
|
void |
addHostDefaultBackend(String host,
IngressBackend backend)
(experimental) Specify a default backend for a specific host name.
|
void |
addHostRule(String host,
String path,
IngressBackend backend)
(experimental) Adds an ingress rule applied to requests to a specific host and a specific HTTP path (the `Host` header matches this value).
|
void |
addRule(String path,
IngressBackend backend)
(experimental) Adds an ingress rule applied to requests sent to a specific HTTP path.
|
void |
addRules(IngressRule... rules)
(experimental) Adds rules to this ingress.
|
protected ApiObject |
getApiObject()
(experimental) The underlying cdk8s API object.
|
protected List<String> |
onValidate()
(experimental) Validate the current construct.
|
getMetadata, getNamejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSetprotected Ingress(software.amazon.jsii.JsiiObjectRef objRef)
protected Ingress(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Ingress(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
IngressProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public Ingress(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental)
public void addDefaultBackend(@NotNull
IngressBackend backend)
A default backend capable of servicing requests that don't match any rule.
backend - The backend to use for requests that do not match any rule. This parameter is required.@Stability(value=Experimental)
public void addHostDefaultBackend(@NotNull
String host,
@NotNull
IngressBackend backend)
This backend will be used as a catch-all for requests
targeted to this host name (the Host header matches this value).
host - The host name to match. This parameter is required.backend - The backend to route to. This parameter is required.@Stability(value=Experimental)
public void addHostRule(@NotNull
String host,
@NotNull
String path,
@NotNull
IngressBackend backend)
host - The host name. This parameter is required.path - The HTTP path. This parameter is required.backend - The backend to route requests to. This parameter is required.@Stability(value=Experimental)
public void addRule(@NotNull
String path,
@NotNull
IngressBackend backend)
path - The HTTP path. This parameter is required.backend - The backend to route requests to. This parameter is required.@Stability(value=Experimental)
public void addRules(@NotNull
IngressRule... rules)
rules - The rules to add. This parameter is required.@Stability(value=Experimental) @NotNull protected List<String> onValidate()
This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
onValidate in class software.constructs.Construct@Stability(value=Experimental) @NotNull protected ApiObject getApiObject()
getApiObject in class Resourcebase.Resource.apiObjectCopyright © 2020. All rights reserved.