@Generated(value="jsii-pacmak/1.13.0 (build 385c325)", date="2020-10-21T06:58:44.680Z") @Stability(value=Experimental) 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
(experimental) A fluent builder for
Pod. |
software.amazon.jsii.JsiiObject.InitializationModeIPodSpec.Jsii$Proxy| 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 |
|---|---|
void |
addContainer(Container container)
(experimental) Add a container to the pod.
|
void |
addVolume(Volume volume)
(experimental) Add a volume to the pod.
|
protected ApiObject |
getApiObject()
(experimental) The underlying cdk8s API object.
|
List<Container> |
getContainers()
(experimental) The containers belonging to the pod.
|
RestartPolicy |
getRestartPolicy()
(experimental) Restart policy for all containers within the pod.
|
IServiceAccount |
getServiceAccount()
(experimental) The service account used to run this pod.
|
List<Volume> |
getVolumes()
(experimental) The volumes associated with this pod.
|
getMetadata, getNameonPrepare, onSynthesize, onValidate, toStringjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSetprotected Pod(software.amazon.jsii.JsiiObjectRef objRef)
protected Pod(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
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=Experimental)
public Pod(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental)
public void addContainer(@NotNull
Container container)
addContainer in interface IPodSpeccontainer - This parameter is required.@Stability(value=Experimental)
public void addVolume(@NotNull
Volume volume)
@Stability(value=Experimental) @NotNull protected ApiObject getApiObject()
getApiObject in class Resourcebase.Resource.apiObject@Stability(value=Experimental) @NotNull public List<Container> getContainers()
Use addContainer to add containers.
getContainers in interface IPodSpec@Stability(value=Experimental) @NotNull public List<Volume> getVolumes()
Use addVolume to add volumes.
getVolumes in interface IPodSpec@Stability(value=Experimental) @Nullable public RestartPolicy getRestartPolicy()
getRestartPolicy in interface IPodSpec@Stability(value=Experimental) @Nullable public IServiceAccount getServiceAccount()
getServiceAccount in interface IPodSpecCopyright © 2020. All rights reserved.