@Stability(value=Stable) @Internal public static final class ServiceProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ServiceProps
ServicePropssoftware.amazon.jsii.JsiiObject.InitializationModeServiceProps.Builder, ServiceProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(String clusterIp,
List<String> externalIPs,
String externalName,
List<String> loadBalancerSourceRanges,
List<? extends ServicePort> ports,
ServiceType type,
org.cdk8s.ApiObjectMetadata metadata)
Constructor that initializes the object based on literal property values passed by the
ServiceProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getClusterIP()
The IP address of the service and is usually assigned randomly by the master.
|
List<String> |
getExternalIPs()
A list of IP addresses for which nodes in the cluster will also accept traffic for this service.
|
String |
getExternalName()
The externalName to be used when ServiceType.EXTERNAL_NAME is set.
|
List<String> |
getLoadBalancerSourceRanges()
A list of CIDR IP addresses, if specified and supported by the platform, will restrict traffic through the cloud-provider load-balancer to the specified client IPs.
|
org.cdk8s.ApiObjectMetadata |
getMetadata()
Metadata that all persisted resources must have, which includes all objects users must create.
|
List<ServicePort> |
getPorts()
The port exposed by this service.
|
ServiceType |
getType()
Determines how the Service is exposed.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(String clusterIp, List<String> externalIPs, String externalName, List<String> loadBalancerSourceRanges, List<? extends ServicePort> ports, ServiceType type, org.cdk8s.ApiObjectMetadata metadata)
ServiceProps.Builder.public final String getClusterIP()
ServicePropsIf an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are "None", empty string (""), or a valid IP address. "None" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName.
Default: - Automatically assigned.
getClusterIP in interface ServicePropshttps://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxiespublic final List<String> getExternalIPs()
ServicePropsThese IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.
Default: - No external IPs.
getExternalIPs in interface ServicePropspublic final String getExternalName()
ServicePropsDefault: - No external name.
getExternalName in interface ServicePropspublic final List<String> getLoadBalancerSourceRanges()
ServicePropsMore info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/
getLoadBalancerSourceRanges in interface ServicePropspublic final List<ServicePort> getPorts()
ServicePropsMore info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
getPorts in interface ServicePropspublic final ServiceType getType()
ServicePropsMore info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
Default: ServiceType.ClusterIP
getType in interface ServicePropspublic final org.cdk8s.ApiObjectMetadata getMetadata()
ResourcePropsgetMetadata in interface ResourceProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.