@Generated(value="jsii-pacmak/1.34.0 (build 9b72778)", date="2021-09-21T00:27:37.489Z") @Stability(value=Stable) public class Pod extends Resource implements IPodSpec
This resource is created by clients and scheduled onto hosts.
| Modifier and Type | Class and Description |
|---|---|
static class |
Pod.Builder
A fluent builder for
Pod. |
software.amazon.jsii.JsiiObject.InitializationModeIPodSpec.Jsii$Default, IPodSpec.Jsii$ProxyIResource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
Pod(software.constructs.Construct scope,
String id) |
|
Pod(software.constructs.Construct scope,
String id,
PodProps props) |
protected |
Pod(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Pod(software.amazon.jsii.JsiiObjectRef objRef) |
| 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.
|
protected org.cdk8s.ApiObject |
getApiObject()
The underlying cdk8s API object.
|
List<Container> |
getContainers()
The containers belonging to the pod.
|
RestartPolicy |
getRestartPolicy()
Restart policy for all containers within the pod.
|
IServiceAccount |
getServiceAccount()
The service account used to run this pod.
|
List<Volume> |
getVolumes()
The volumes associated with this pod.
|
getMetadata, getNameonPrepare, onSynthesize, onValidate, toStringjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Pod(software.amazon.jsii.JsiiObjectRef objRef)
protected Pod(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public Pod(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
PodProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable)
public Pod(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public Container addContainer(@NotNull ContainerProps container)
addContainer in interface IPodSpeccontainer - This parameter is required.@Stability(value=Stable)
public void addVolume(@NotNull
Volume volume)
@Stability(value=Stable) @NotNull protected org.cdk8s.ApiObject getApiObject()
getApiObject in class Resourcebase.Resource.apiObject@Stability(value=Stable) @NotNull public List<Container> getContainers()
Use addContainer to add containers.
getContainers in interface IPodSpec@Stability(value=Stable) @NotNull public List<Volume> getVolumes()
Use addVolume to add volumes.
getVolumes in interface IPodSpec@Stability(value=Stable) @Nullable public RestartPolicy getRestartPolicy()
getRestartPolicy in interface IPodSpec@Stability(value=Stable) @Nullable public IServiceAccount getServiceAccount()
getServiceAccount in interface IPodSpecCopyright © 2021. All rights reserved.