@Generated(value="jsii-pacmak/1.41.0 (build a274beb)", date="2021-10-30T01:04:46.481Z") @Stability(value=Stable) public interface ExposeDeploymentViaServiceOptions extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
ExposeDeploymentViaServiceOptions.Builder
A builder for
ExposeDeploymentViaServiceOptions |
static class |
ExposeDeploymentViaServiceOptions.Jsii$Proxy
An implementation for
ExposeDeploymentViaServiceOptions |
| Modifier and Type | Method and Description |
|---|---|
static ExposeDeploymentViaServiceOptions.Builder |
builder() |
default String |
getName()
The name of the service to expose.
|
default Number |
getPort()
The port that the service should serve on.
|
default Protocol |
getProtocol()
The IP protocol for this port.
|
default ServiceType |
getServiceType()
The type of the exposed service.
|
default Number |
getTargetPort()
The port number the service will redirect to.
|
@Stability(value=Stable) @Nullable default String getName()
This will be set on the Service.metadata and must be a DNS_LABEL
Default: undefined Uses the system generated name.
@Stability(value=Stable) @Nullable default Number getPort()
Default: - Copied from the container of the deployment. If a port could not be determined, throws an error.
@Stability(value=Stable) @Nullable default Protocol getProtocol()
Supports "TCP", "UDP", and "SCTP". Default is TCP.
Default: Protocol.TCP
@Stability(value=Stable) @Nullable default ServiceType getServiceType()
Default: - ClusterIP.
@Stability(value=Stable) @Nullable default Number getTargetPort()
Default: - The port of the first container in the deployment (ie. containers[0].port)
@Stability(value=Stable) static ExposeDeploymentViaServiceOptions.Builder builder()
Copyright © 2021. All rights reserved.