Package org.cdk8s.plus20
Class IngressV1Beta1
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- org.cdk8s.plus20.Resource
-
- org.cdk8s.plus20.IngressV1Beta1
-
- All Implemented Interfaces:
IResource,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.54.0 (build b1b977a)", date="2022-03-07T02:28:27.945Z") @Stability(Stable) public class IngressV1Beta1 extends Resource
Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend.An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIngressV1Beta1.BuilderA fluent builder forIngressV1Beta1.-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus20.IResource
IResource.Jsii$Default
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIngressV1Beta1(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedIngressV1Beta1(software.amazon.jsii.JsiiObjectRef objRef)IngressV1Beta1(software.constructs.Construct scope, String id)IngressV1Beta1(software.constructs.Construct scope, String id, IngressV1Beta1Props props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDefaultBackend(IngressV1Beta1Backend backend)Defines the default backend for this ingress.voidaddHostDefaultBackend(String host, IngressV1Beta1Backend backend)Specify a default backend for a specific host name.voidaddHostRule(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).voidaddRule(String path, IngressV1Beta1Backend backend)Adds an ingress rule applied to requests sent to a specific HTTP path.voidaddRules(@NotNull IngressV1Beta1Rule... rules)Adds rules to this ingress.voidaddTls(List<IngressV1Beta1Tls> tls)protected org.cdk8s.ApiObjectgetApiObject()The underlying cdk8s API object.protected List<String>onValidate()Validate the current construct.-
Methods inherited from class org.cdk8s.plus20.Resource
getMetadata, getName
-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
IngressV1Beta1
protected IngressV1Beta1(software.amazon.jsii.JsiiObjectRef objRef)
-
IngressV1Beta1
protected IngressV1Beta1(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
IngressV1Beta1
@Stability(Stable) public IngressV1Beta1(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable IngressV1Beta1Props props)- Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
IngressV1Beta1
@Stability(Stable) public IngressV1Beta1(@NotNull software.constructs.Construct scope, @NotNull String id)- Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Detail
-
addDefaultBackend
@Stability(Stable) public void addDefaultBackend(@NotNull IngressV1Beta1Backend backend)Defines the default backend for this ingress.A default backend capable of servicing requests that don't match any rule.
- Parameters:
backend- The backend to use for requests that do not match any rule. This parameter is required.
-
addHostDefaultBackend
@Stability(Stable) public void addHostDefaultBackend(@NotNull String host, @NotNull IngressV1Beta1Backend backend)Specify a default backend for a specific host name.This backend will be used as a catch-all for requests targeted to this host name (the
Hostheader matches this value).- Parameters:
host- The host name to match. This parameter is required.backend- The backend to route to. This parameter is required.
-
addHostRule
@Stability(Stable) public void addHostRule(@NotNull String host, @NotNull String path, @NotNull IngressV1Beta1Backend backend)Adds an ingress rule applied to requests to a specific host and a specific HTTP path (the `Host` header matches this value).- Parameters:
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.
-
addRule
@Stability(Stable) public void addRule(@NotNull String path, @NotNull IngressV1Beta1Backend backend)Adds an ingress rule applied to requests sent to a specific HTTP path.- Parameters:
path- The HTTP path. This parameter is required.backend- The backend to route requests to. This parameter is required.
-
addRules
@Stability(Stable) public void addRules(@NotNull @NotNull IngressV1Beta1Rule... rules)Adds rules to this ingress.- Parameters:
rules- The rules to add. This parameter is required.
-
addTls
@Stability(Stable) public void addTls(@NotNull List<IngressV1Beta1Tls> tls)- Parameters:
tls- This parameter is required.
-
onValidate
@Stability(Stable) @NotNull protected List<String> onValidate()
Validate the current construct.This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
- Overrides:
onValidatein classsoftware.constructs.Construct
-
getApiObject
@Stability(Stable) @NotNull protected org.cdk8s.ApiObject getApiObject()
The underlying cdk8s API object.- Specified by:
getApiObjectin classResource- See Also:
base.Resource.apiObject
-
-