Class AccessEntry
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.eks.AccessEntry
- All Implemented Interfaces:
IEnvironmentAware,IResource,IAccessEntry,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T10:47:20.177Z")
@Stability(Stable)
public class AccessEntry
extends Resource
implements IAccessEntry
Represents an access entry in an Amazon EKS cluster.
An access entry defines the permissions and scope for a user or role to access an Amazon EKS cluster.
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.*;
AccessPolicy accessPolicy;
Cluster cluster;
AccessEntry accessEntry = AccessEntry.Builder.create(this, "MyAccessEntry")
.accessPolicies(List.of(accessPolicy))
.cluster(cluster)
.principal("principal")
// the properties below are optional
.accessEntryName("accessEntryName")
.accessEntryType(AccessEntryType.STANDARD)
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.eks.IAccessEntry
IAccessEntry.Jsii$Default, IAccessEntry.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAccessEntry(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedAccessEntry(software.amazon.jsii.JsiiObjectRef objRef) AccessEntry(software.constructs.Construct scope, String id, AccessEntryProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAccessPolicies(List<IAccessPolicy> newAccessPolicies) Add the access policies for this entry.static IAccessEntryfromAccessEntryAttributes(software.constructs.Construct scope, String id, AccessEntryAttributes attrs) Imports anAccessEntryfrom its attributes.The Amazon Resource Name (ARN) of the access entry.The name of the access entry.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
AccessEntry
protected AccessEntry(software.amazon.jsii.JsiiObjectRef objRef) -
AccessEntry
protected AccessEntry(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AccessEntry
@Stability(Stable) public AccessEntry(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AccessEntryProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromAccessEntryAttributes
@Stability(Stable) @NotNull public static IAccessEntry fromAccessEntryAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AccessEntryAttributes attrs) Imports anAccessEntryfrom its attributes.- Parameters:
scope-- The parent construct.
id-- The ID of the imported construct.
attrs-- The attributes of the access entry to import.
- Returns:
- The imported access entry.
-
addAccessPolicies
Add the access policies for this entry.- Parameters:
newAccessPolicies-- The new access policies to add.
-
getAccessEntryArn
The Amazon Resource Name (ARN) of the access entry.- Specified by:
getAccessEntryArnin interfaceIAccessEntry
-
getAccessEntryName
The name of the access entry.- Specified by:
getAccessEntryNamein interfaceIAccessEntry
-