@Generated(value="jsii-pacmak/1.13.0 (build 385c325)", date="2020-10-21T06:58:44.660Z") @Stability(value=Experimental) public interface IPodSpec extends software.amazon.jsii.JsiiSerializable
Use the PodSpec class as an implementation helper.
| Modifier and Type | Interface and Description |
|---|---|
static class |
IPodSpec.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContainer(Container container)
(experimental) Add a container to the pod.
|
void |
addVolume(Volume volume)
(experimental) Add a volume to the pod.
|
List<Container> |
getContainers()
(experimental) The containers belonging to the pod.
|
default RestartPolicy |
getRestartPolicy()
(experimental) Restart policy for all containers within the pod.
|
default IServiceAccount |
getServiceAccount()
(experimental) The service account used to run this pod.
|
List<Volume> |
getVolumes()
(experimental) The volumes associated with this pod.
|
@Stability(value=Experimental) @NotNull List<Container> getContainers()
Use addContainer to add containers.
@Stability(value=Experimental) @NotNull List<Volume> getVolumes()
Use addVolume to add volumes.
@Stability(value=Experimental) @Nullable default RestartPolicy getRestartPolicy()
@Stability(value=Experimental) @Nullable default IServiceAccount getServiceAccount()
@Stability(value=Experimental)
void addContainer(@NotNull
Container container)
container - The container. This parameter is required.@Stability(value=Experimental)
void addVolume(@NotNull
Volume volume)
volume - The volume. This parameter is required.Copyright © 2020. All rights reserved.