Package org.cdk8s.plus24
Class Namespaces
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- org.cdk8s.plus24.Namespaces
-
- All Implemented Interfaces:
INamespaceSelector
,INetworkPolicyPeer
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.82.0 (build 2d2ddd7)", date="2023-05-25T02:26:40.613Z") @Stability(Stable) public class Namespaces extends software.constructs.Construct implements INamespaceSelector, INetworkPolicyPeer
Represents a group of namespaces.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.INamespaceSelector
INamespaceSelector.Jsii$Default, INamespaceSelector.Jsii$Proxy
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.INetworkPolicyPeer
INetworkPolicyPeer.Jsii$Default, INetworkPolicyPeer.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Namespaces(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected
Namespaces(software.amazon.jsii.JsiiObjectRef objRef)
Namespaces(software.constructs.Construct scope, String id)
Namespaces(software.constructs.Construct scope, String id, List<LabelExpression> expressions)
Namespaces(software.constructs.Construct scope, String id, List<LabelExpression> expressions, List<String> names)
Namespaces(software.constructs.Construct scope, String id, List<LabelExpression> expressions, List<String> names, Map<String,String> labels)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Namespaces
all(software.constructs.Construct scope, String id)
Select all namespaces.static Namespaces
select(software.constructs.Construct scope, String id, NamespacesSelectOptions options)
Select specific namespaces.NamespaceSelectorConfig
toNamespaceSelectorConfig()
Return the configuration of this selector.NetworkPolicyPeerConfig
toNetworkPolicyPeerConfig()
Return the configuration of this peer.IPodSelector
toPodSelector()
Convert the peer into a pod selector, if possible.-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
Namespaces
protected Namespaces(software.amazon.jsii.JsiiObjectRef objRef)
-
Namespaces
protected Namespaces(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
Namespaces
@Stability(Stable) public Namespaces(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable List<LabelExpression> expressions, @Nullable List<String> names, @Nullable Map<String,String> labels)
- Parameters:
scope
- This parameter is required.id
- This parameter is required.expressions
-names
-labels
-
-
Namespaces
@Stability(Stable) public Namespaces(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable List<LabelExpression> expressions, @Nullable List<String> names)
- Parameters:
scope
- This parameter is required.id
- This parameter is required.expressions
-names
-
-
Namespaces
@Stability(Stable) public Namespaces(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable List<LabelExpression> expressions)
- Parameters:
scope
- This parameter is required.id
- This parameter is required.expressions
-
-
Namespaces
@Stability(Stable) public Namespaces(@NotNull software.constructs.Construct scope, @NotNull String id)
- Parameters:
scope
- This parameter is required.id
- This parameter is required.
-
-
Method Detail
-
all
@Stability(Stable) @NotNull public static Namespaces all(@NotNull software.constructs.Construct scope, @NotNull String id)
Select all namespaces.- Parameters:
scope
- This parameter is required.id
- This parameter is required.
-
select
@Stability(Stable) @NotNull public static Namespaces select(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull NamespacesSelectOptions options)
Select specific namespaces.- Parameters:
scope
- This parameter is required.id
- This parameter is required.options
- This parameter is required.
-
toNamespaceSelectorConfig
@Stability(Stable) @NotNull public NamespaceSelectorConfig toNamespaceSelectorConfig()
Return the configuration of this selector.- Specified by:
toNamespaceSelectorConfig
in interfaceINamespaceSelector
- See Also:
- INamespaceSelector.toNamespaceSelectorConfig()
-
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()
-
-