Class AccessEntry
(experimental) Represents an access entry in an Amazon EKS cluster.
Inherited Members
Namespace: Amazon.CDK.AWS.Eks.V2.Alpha
Assembly: Amazon.CDK.AWS.Eks.V2.Alpha.dll
Syntax (csharp)
public class AccessEntry : Resource, IAccessEntry, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class AccessEntry Inherits Resource Implements IAccessEntry, IResource, IConstruct, IDependable, IEnvironmentAware
Remarks
An access entry defines the permissions and scope for a user or role to access an Amazon EKS cluster.
Stability: Experimental
Implements: IAccessEntry *
Resource: AWS::EKS::AccessEntry
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Eks.V2.Alpha;
AccessPolicy accessPolicy;
Cluster cluster;
var accessEntry = new AccessEntry(this, "MyAccessEntry", new AccessEntryProps {
AccessPolicies = new [] { accessPolicy },
Cluster = cluster,
Principal = "principal",
// the properties below are optional
AccessEntryName = "accessEntryName",
AccessEntryType = AccessEntryType.STANDARD
});
Synopsis
Constructors
| AccessEntry(Construct, string, IAccessEntryProps) | (experimental) Represents an access entry in an Amazon EKS cluster. |
Properties
| AccessEntryArn | (experimental) The Amazon Resource Name (ARN) of the access entry. |
| AccessEntryName | (experimental) The name of the access entry. |
| PROPERTY_INJECTION_ID | (experimental) Uniquely identifies this class. |
Methods
| AddAccessPolicies(IAccessPolicy[]) | (experimental) Add the access policies for this entry. |
| FromAccessEntryAttributes(Construct, string, IAccessEntryAttributes) | (experimental) Imports an |
Constructors
AccessEntry(Construct, string, IAccessEntryProps)
(experimental) Represents an access entry in an Amazon EKS cluster.
public AccessEntry(Construct scope, string id, IAccessEntryProps props)
Parameters
- scope Construct
- id string
- props IAccessEntryProps
Remarks
Stability: Experimental
Properties
AccessEntryArn
(experimental) The Amazon Resource Name (ARN) of the access entry.
public virtual string AccessEntryArn { get; }
Property Value
Remarks
Stability: Experimental
AccessEntryName
(experimental) The name of the access entry.
public virtual string AccessEntryName { get; }
Property Value
Remarks
Stability: Experimental
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Stability: Experimental
Methods
AddAccessPolicies(IAccessPolicy[])
(experimental) Add the access policies for this entry.
public virtual void AddAccessPolicies(IAccessPolicy[] newAccessPolicies)
Parameters
- newAccessPolicies IAccessPolicy[]
- The new access policies to add.
Remarks
Stability: Experimental
FromAccessEntryAttributes(Construct, string, IAccessEntryAttributes)
(experimental) Imports an AccessEntry from its attributes.
public static IAccessEntry FromAccessEntryAttributes(Construct scope, string id, IAccessEntryAttributes attrs)
Parameters
- scope Construct
- The parent construct.
- id string
- The ID of the imported construct.
- attrs IAccessEntryAttributes
- The attributes of the access entry to import.
Returns
The imported access entry.
Remarks
Stability: Experimental