@Generated(value="jsii-pacmak/1.43.0 (build b69a797)", date="2021-11-15T00:15:34.931Z") @Stability(value=Stable) 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
A fluent builder for
Ingress. |
software.amazon.jsii.JsiiObject.InitializationModeIResource.Jsii$Default| 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)
Defines the default backend for this ingress.
|
void |
addHostDefaultBackend(String host,
IngressBackend backend)
Specify a default backend for a specific host name.
|
void |
addHostRule(String host,
String path,
IngressBackend backend)
Adds an ingress rule applied to requests to a specific host and a specific HTTP path (the `Host` header matches this value).
|
void |
addHostRule(String host,
String path,
IngressBackend backend,
HttpIngressPathType pathType)
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)
Adds an ingress rule applied to requests sent to a specific HTTP path.
|
void |
addRule(String path,
IngressBackend backend,
HttpIngressPathType pathType)
Adds an ingress rule applied to requests sent to a specific HTTP path.
|
void |
addRules(IngressRule... rules)
Adds rules to this ingress.
|
void |
addTls(List<IngressTls> tls) |
protected org.cdk8s.ApiObject |
getApiObject()
The underlying cdk8s API object.
|
protected List<String> |
onValidate()
(deprecated) Validate the current construct.
|
getMetadata, getNamejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Ingress(software.amazon.jsii.JsiiObjectRef objRef)
protected Ingress(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
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=Stable)
public Ingress(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable)
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=Stable)
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=Stable)
public void addHostRule(@NotNull
String host,
@NotNull
String path,
@NotNull
IngressBackend backend,
@Nullable
HttpIngressPathType pathType)
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.pathType - How the path is matched against request paths.@Stability(value=Stable)
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=Stable)
public void addRule(@NotNull
String path,
@NotNull
IngressBackend backend,
@Nullable
HttpIngressPathType pathType)
path - The HTTP path. This parameter is required.backend - The backend to route requests to. This parameter is required.pathType - How the path is matched against request paths.@Stability(value=Stable)
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=Stable)
public void addRules(@NotNull
IngressRule... rules)
rules - The rules to add. This parameter is required.@Stability(value=Stable)
public void addTls(@NotNull
List<IngressTls> tls)
tls - This parameter is required.@Stability(value=Stable) @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=Stable) @NotNull protected org.cdk8s.ApiObject getApiObject()
getApiObject in class Resourcebase.Resource.apiObjectCopyright © 2021. All rights reserved.