Interface AccessScope
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AccessScope.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:39.502Z")
@Stability(Stable)
public interface AccessScope
extends software.amazon.jsii.JsiiSerializable
Represents the scope of an access policy.
The scope defines the namespaces or cluster-level access granted by the policy.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.eks.*;
AccessScope accessScope = AccessScope.builder()
.type(AccessScopeType.NAMESPACE)
// the properties below are optional
.namespaces(List.of("namespaces"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAccessScopestatic final classAn implementation forAccessScope -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessScope.Builderbuilder()A Kubernetes namespace that an access policy is scoped to.getType()The scope type of the policy, either 'namespace' or 'cluster'.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
The scope type of the policy, either 'namespace' or 'cluster'. -
getNamespaces
A Kubernetes namespace that an access policy is scoped to.A value is required if you specified namespace for Type.
Default: - no specific namespaces for this scope.
-
builder
- Returns:
- a
AccessScope.BuilderofAccessScope
-