Package org.cdk8s.plus23
Class AbstractPod
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- org.cdk8s.plus23.Resource
-
- org.cdk8s.plus23.AbstractPod
-
- All Implemented Interfaces:
IApiEndpoint
,IApiResource
,INetworkPolicyPeer
,IPodSelector
,IResource
,ISubject
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.69.0 (build f656c31)", date="2022-10-15T03:08:34.926Z") @Stability(Stable) public abstract class AbstractPod extends Resource implements IPodSelector, INetworkPolicyPeer, ISubject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus23.IApiEndpoint
IApiEndpoint.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus23.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.plus23.INetworkPolicyPeer
INetworkPolicyPeer.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus23.IPodSelector
IPodSelector.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus23.IResource
IResource.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus23.ISubject
ISubject.Jsii$Default
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPod(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected
AbstractPod(software.amazon.jsii.JsiiObjectRef objRef)
protected
AbstractPod(software.constructs.Construct scope, String id)
protected
AbstractPod(software.constructs.Construct scope, String id, AbstractPodProps props)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Container
addContainer(ContainerProps cont)
void
addHostAlias(HostAlias hostAlias)
Container
addInitContainer(ContainerProps cont)
void
addVolume(Volume vol)
Boolean
getAutomountServiceAccountToken()
List<Container>
getContainers()
PodDns
getDns()
DockerConfigSecret
getDockerRegistryAuth()
List<HostAlias>
getHostAliases()
List<Container>
getInitContainers()
abstract org.cdk8s.ApiObjectMetadataDefinition
getPodMetadata()
RestartPolicy
getRestartPolicy()
PodSecurityContext
getSecurityContext()
IServiceAccount
getServiceAccount()
List<Volume>
getVolumes()
NetworkPolicyPeerConfig
toNetworkPolicyPeerConfig()
Return the configuration of this peer.IPodSelector
toPodSelector()
Convert the peer into a pod selector, if possible.PodSelectorConfig
toPodSelectorConfig()
Return the configuration of this selector.SubjectConfiguration
toSubjectConfiguration()
Return the subject configuration.-
Methods inherited from class org.cdk8s.plus23.Resource
asApiResource, asNonApiResource, getApiGroup, getApiObject, getApiVersion, getKind, getMetadata, getName, getPermissions, getResourceName, getResourceType
-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
AbstractPod
protected AbstractPod(software.amazon.jsii.JsiiObjectRef objRef)
-
AbstractPod
protected AbstractPod(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
AbstractPod
@Stability(Stable) protected AbstractPod(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable AbstractPodProps props)
- Parameters:
scope
- This parameter is required.id
- This parameter is required.props
-
-
AbstractPod
@Stability(Stable) protected AbstractPod(@NotNull software.constructs.Construct scope, @NotNull String id)
- Parameters:
scope
- This parameter is required.id
- This parameter is required.
-
-
Method Detail
-
addContainer
@Stability(Stable) @NotNull public Container addContainer(@NotNull ContainerProps cont)
- Parameters:
cont
- This parameter is required.
-
addHostAlias
@Stability(Stable) public void addHostAlias(@NotNull HostAlias hostAlias)
- Parameters:
hostAlias
- This parameter is required.
-
addInitContainer
@Stability(Stable) @NotNull public Container addInitContainer(@NotNull ContainerProps cont)
- Parameters:
cont
- This parameter is required.
-
addVolume
@Stability(Stable) public void addVolume(@NotNull Volume vol)
- Parameters:
vol
- This parameter is required.
-
toNetworkPolicyPeerConfig
@Stability(Stable) @NotNull public NetworkPolicyPeerConfig toNetworkPolicyPeerConfig()
Return the configuration of this peer.- Specified by:
toNetworkPolicyPeerConfig
in interfaceINetworkPolicyPeer
- See Also:
- INetworkPolicyPeer.toNetworkPolicyPeerConfig()
-
toPodSelector
@Stability(Stable) @Nullable public IPodSelector toPodSelector()
Convert the peer into a pod selector, if possible.- Specified by:
toPodSelector
in interfaceINetworkPolicyPeer
- See Also:
- INetworkPolicyPeer.toPodSelector()
-
toPodSelectorConfig
@Stability(Stable) @NotNull public PodSelectorConfig toPodSelectorConfig()
Return the configuration of this selector.- Specified by:
toPodSelectorConfig
in interfaceIPodSelector
- See Also:
- IPodSelector.toPodSelectorConfig()
-
toSubjectConfiguration
@Stability(Stable) @NotNull public SubjectConfiguration toSubjectConfiguration()
Return the subject configuration.- Specified by:
toSubjectConfiguration
in interfaceISubject
- See Also:
- ISubect.toSubjectConfiguration()
-
getAutomountServiceAccountToken
@Stability(Stable) @NotNull public Boolean getAutomountServiceAccountToken()
-
getDns
@Stability(Stable) @NotNull public PodDns getDns()
-
getPodMetadata
@Stability(Stable) @NotNull public abstract org.cdk8s.ApiObjectMetadataDefinition getPodMetadata()
-
getSecurityContext
@Stability(Stable) @NotNull public PodSecurityContext getSecurityContext()
-
getDockerRegistryAuth
@Stability(Stable) @Nullable public DockerConfigSecret getDockerRegistryAuth()
-
getRestartPolicy
@Stability(Stable) @Nullable public RestartPolicy getRestartPolicy()
-
getServiceAccount
@Stability(Stable) @Nullable public IServiceAccount getServiceAccount()
-
-