@Generated(value="jsii-pacmak/1.43.0 (build b69a797)", date="2021-11-15T00:20:48.999Z") @Stability(value=Stable) public class IngressV1Beta1 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 |
IngressV1Beta1.Builder
A fluent builder for
IngressV1Beta1. |
software.amazon.jsii.JsiiObject.InitializationModeIResource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
IngressV1Beta1(software.constructs.Construct scope,
String id) |
|
IngressV1Beta1(software.constructs.Construct scope,
String id,
IngressV1Beta1Props props) |
protected |
IngressV1Beta1(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
IngressV1Beta1(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultBackend(IngressV1Beta1Backend backend)
Defines the default backend for this ingress.
|
void |
addHostDefaultBackend(String host,
IngressV1Beta1Backend backend)
Specify a default backend for a specific host name.
|
void |
addHostRule(String host,
String path,
IngressV1Beta1Backend backend)
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,
IngressV1Beta1Backend backend)
Adds an ingress rule applied to requests sent to a specific HTTP path.
|
void |
addRules(IngressV1Beta1Rule... rules)
Adds rules to this ingress.
|
void |
addTls(List<IngressV1Beta1Tls> 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 IngressV1Beta1(software.amazon.jsii.JsiiObjectRef objRef)
protected IngressV1Beta1(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public IngressV1Beta1(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
IngressV1Beta1Props props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable)
public IngressV1Beta1(@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
IngressV1Beta1Backend 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
IngressV1Beta1Backend 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
IngressV1Beta1Backend 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
IngressV1Beta1Backend 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
IngressV1Beta1Rule... rules)
rules - The rules to add. This parameter is required.@Stability(value=Stable)
public void addTls(@NotNull
List<IngressV1Beta1Tls> 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.