Package org.cdk8s.plus25
Class AbstractPod
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- org.cdk8s.plus25.Resource
-
- org.cdk8s.plus25.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.88.0 (build eaabd08)", date="2023-09-11T06:17:58.111Z") @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.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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPod(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedAbstractPod(software.amazon.jsii.JsiiObjectRef objRef)protectedAbstractPod(software.constructs.Construct scope, String id)protectedAbstractPod(software.constructs.Construct scope, String id, AbstractPodProps props)
-
Method Summary
-
Methods inherited from class org.cdk8s.plus25.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.
-
attachContainer
@Stability(Stable) public void attachContainer(@NotNull Container cont)- Parameters:
cont- This parameter is required.
-
toNetworkPolicyPeerConfig
@Stability(Stable) @NotNull public NetworkPolicyPeerConfig toNetworkPolicyPeerConfig()
Return the configuration of this peer.- Specified by:
toNetworkPolicyPeerConfigin interfaceINetworkPolicyPeer- See Also:
- INetworkPolicyPeer.toNetworkPolicyPeerConfig()
-
toPodSelector
@Stability(Stable) @Nullable public IPodSelector toPodSelector()
Convert the peer into a pod selector, if possible.- Specified by:
toPodSelectorin interfaceINetworkPolicyPeer- See Also:
- INetworkPolicyPeer.toPodSelector()
-
toPodSelectorConfig
@Stability(Stable) @NotNull public PodSelectorConfig toPodSelectorConfig()
Return the configuration of this selector.- Specified by:
toPodSelectorConfigin interfaceIPodSelector- See Also:
- IPodSelector.toPodSelectorConfig()
-
toSubjectConfiguration
@Stability(Stable) @NotNull public SubjectConfiguration toSubjectConfiguration()
Return the subject configuration.- Specified by:
toSubjectConfigurationin interfaceISubject- See Also:
- ISubect.toSubjectConfiguration()
-
getAutomountServiceAccountToken
@Stability(Stable) @NotNull public Boolean getAutomountServiceAccountToken()
-
getDns
@Stability(Stable) @NotNull public PodDns getDns()
-
getIsolate
@Stability(Stable) @NotNull protected Boolean getIsolate()
-
getPodMetadata
@Stability(Stable) @NotNull public abstract org.cdk8s.ApiObjectMetadataDefinition getPodMetadata()
-
getSecurityContext
@Stability(Stable) @NotNull public PodSecurityContext getSecurityContext()
-
getDockerRegistryAuth
@Stability(Stable) @Nullable public ISecret getDockerRegistryAuth()
-
getHostNetwork
@Stability(Stable) @Nullable public Boolean getHostNetwork()
-
getRestartPolicy
@Stability(Stable) @Nullable public RestartPolicy getRestartPolicy()
-
getServiceAccount
@Stability(Stable) @Nullable public IServiceAccount getServiceAccount()
-
getTerminationGracePeriod
@Stability(Stable) @Nullable public org.cdk8s.Duration getTerminationGracePeriod()
-
-