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