Package org.cdk8s.plus25
Class Pod
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- org.cdk8s.plus25.Resource
-
- org.cdk8s.plus25.AbstractPod
-
- org.cdk8s.plus25.Pod
-
- All Implemented Interfaces:
IApiEndpoint,IApiResource,INetworkPolicyPeer,IPodSelector,IResource,ISubject,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.383Z") @Stability(Stable) public class Pod extends AbstractPod
Pod is a collection of containers that can run on a host.This resource is created by clients and scheduled onto hosts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPod.BuilderA fluent builder forPod.-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus25.IApiEndpoint
IApiEndpoint.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus25.IApiResource
IApiResource.Jsii$Default
-
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus25.INetworkPolicyPeer
INetworkPolicyPeer.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus25.IPodSelector
IPodSelector.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus25.IResource
IResource.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus25.ISubject
ISubject.Jsii$Default
-
-
Field Summary
Fields Modifier and Type Field Description static StringADDRESS_LABELThis label is autoamtically added by cdk8s to any pod.
-
Constructor Summary
Constructors Modifier Constructor Description protectedPod(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedPod(software.amazon.jsii.JsiiObjectRef objRef)Pod(software.constructs.Construct scope, String id)Pod(software.constructs.Construct scope, String id, PodProps props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.cdk8s.ApiObjectgetApiObject()The underlying cdk8s API object.PodConnectionsgetConnections()org.cdk8s.ApiObjectMetadataDefinitiongetPodMetadata()StringgetResourceType()The name of a resource type as it appears in the relevant API endpoint.PodSchedulinggetScheduling()-
Methods inherited from class org.cdk8s.plus25.AbstractPod
addContainer, addHostAlias, addInitContainer, addVolume, attachContainer, getAutomountServiceAccountToken, getContainers, getDns, getDockerRegistryAuth, getHostAliases, getHostNetwork, getInitContainers, getIsolate, getRestartPolicy, getSecurityContext, getServiceAccount, getTerminationGracePeriod, getVolumes, toNetworkPolicyPeerConfig, toPodSelector, toPodSelectorConfig, toSubjectConfiguration
-
Methods inherited from class org.cdk8s.plus25.Resource
asApiResource, asNonApiResource, getApiGroup, getApiVersion, getKind, getMetadata, getName, getPermissions, getResourceName
-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Field Detail
-
ADDRESS_LABEL
@Stability(Stable) public static final String ADDRESS_LABEL
This label is autoamtically added by cdk8s to any pod.It provides a unique and stable identifier for the pod.
-
-
Constructor Detail
-
Pod
protected Pod(software.amazon.jsii.JsiiObjectRef objRef)
-
Pod
protected Pod(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
Pod
@Stability(Stable) public Pod(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable PodProps props)- Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
Pod
@Stability(Stable) public Pod(@NotNull software.constructs.Construct scope, @NotNull String id)- Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Detail
-
getApiObject
@Stability(Stable) @NotNull protected org.cdk8s.ApiObject getApiObject()
The underlying cdk8s API object.- Specified by:
getApiObjectin classResource- See Also:
- base.Resource.apiObject
-
getConnections
@Stability(Stable) @NotNull public PodConnections getConnections()
-
getPodMetadata
@Stability(Stable) @NotNull public org.cdk8s.ApiObjectMetadataDefinition getPodMetadata()
- Specified by:
getPodMetadatain classAbstractPod
-
getResourceType
@Stability(Stable) @NotNull public String getResourceType()
The name of a resource type as it appears in the relevant API endpoint.- Specified by:
getResourceTypein interfaceIApiResource- Specified by:
getResourceTypein classResource- See Also:
- https://kubernetes.io/docs/reference/access-authn-authz/rbac/#referring-to-resources
-
getScheduling
@Stability(Stable) @NotNull public PodScheduling getScheduling()
-
-