Package org.cdk8s.plus24
Class Pod
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- org.cdk8s.plus24.Resource
-
- org.cdk8s.plus24.AbstractPod
-
- org.cdk8s.plus24.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.74.0 (build 6d08790)", date="2023-02-04T02:31:04.958Z") @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 class
Pod.Builder
A 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.plus24.IApiEndpoint
IApiEndpoint.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.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.plus24.INetworkPolicyPeer
INetworkPolicyPeer.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.IPodSelector
IPodSelector.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.IResource
IResource.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.ISubject
ISubject.Jsii$Default
-
-
Field Summary
Fields Modifier and Type Field Description static String
ADDRESS_LABEL
This label is autoamtically added by cdk8s to any pod.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Pod(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected
Pod(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.ApiObject
getApiObject()
The underlying cdk8s API object.PodConnections
getConnections()
org.cdk8s.ApiObjectMetadataDefinition
getPodMetadata()
String
getResourceType()
The name of a resource type as it appears in the relevant API endpoint.PodScheduling
getScheduling()
-
Methods inherited from class org.cdk8s.plus24.AbstractPod
addContainer, addHostAlias, addInitContainer, addVolume, attachContainer, getAutomountServiceAccountToken, getContainers, getDns, getDockerRegistryAuth, getHostAliases, getInitContainers, getIsolate, getRestartPolicy, getSecurityContext, getServiceAccount, getVolumes, toNetworkPolicyPeerConfig, toPodSelector, toPodSelectorConfig, toSubjectConfiguration
-
Methods inherited from class org.cdk8s.plus24.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:
getApiObject
in classResource
- See Also:
- base.Resource.apiObject
-
getConnections
@Stability(Stable) @NotNull public PodConnections getConnections()
-
getPodMetadata
@Stability(Stable) @NotNull public org.cdk8s.ApiObjectMetadataDefinition getPodMetadata()
- Specified by:
getPodMetadata
in classAbstractPod
-
getResourceType
@Stability(Stable) @NotNull public String getResourceType()
The name of a resource type as it appears in the relevant API endpoint.- Specified by:
getResourceType
in interfaceIApiResource
- Specified by:
getResourceType
in classResource
- See Also:
- https://kubernetes.io/docs/reference/access-authn-authz/rbac/#referring-to-resources
-
getScheduling
@Stability(Stable) @NotNull public PodScheduling getScheduling()
-
-