Show / Hide Table of Contents

Class AccessPolicyNameOptions

Represents the options required to create an Amazon EKS Access Policy using the fromAccessPolicyName() method.

Inheritance
object
AccessPolicyNameOptions
Implements
IAccessPolicyNameOptions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EKSv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AccessPolicyNameOptions : IAccessPolicyNameOptions
Syntax (vb)
Public Class AccessPolicyNameOptions Implements IAccessPolicyNameOptions
Remarks

ExampleMetadata: infused

Examples
Cluster cluster;
            Role nodeRole;


            // Grant access with EC2 type for Auto Mode node role
            cluster.GrantAccess("nodeAccess", nodeRole.RoleArn, new [] { AccessPolicy.FromAccessPolicyName("AmazonEKSAutoNodePolicy", new AccessPolicyNameOptions {
                AccessScopeType = AccessScopeType.CLUSTER
            }) }, new GrantAccessOptions { AccessEntryType = AccessEntryType.EC2 });

Synopsis

Constructors

AccessPolicyNameOptions()

Represents the options required to create an Amazon EKS Access Policy using the fromAccessPolicyName() method.

Properties

AccessScopeType

The scope of the access policy.

Namespaces

An optional array of Kubernetes namespaces to which the access policy applies.

Constructors

AccessPolicyNameOptions()

Represents the options required to create an Amazon EKS Access Policy using the fromAccessPolicyName() method.

public AccessPolicyNameOptions()
Remarks

ExampleMetadata: infused

Examples
Cluster cluster;
            Role nodeRole;


            // Grant access with EC2 type for Auto Mode node role
            cluster.GrantAccess("nodeAccess", nodeRole.RoleArn, new [] { AccessPolicy.FromAccessPolicyName("AmazonEKSAutoNodePolicy", new AccessPolicyNameOptions {
                AccessScopeType = AccessScopeType.CLUSTER
            }) }, new GrantAccessOptions { AccessEntryType = AccessEntryType.EC2 });

Properties

AccessScopeType

The scope of the access policy.

public AccessScopeType AccessScopeType { get; set; }
Property Value

AccessScopeType

Remarks

This determines the level of access granted by the policy.

Namespaces

An optional array of Kubernetes namespaces to which the access policy applies.

public string[]? Namespaces { get; set; }
Property Value

string[]

Remarks

Default: - no specific namespaces for this scope

Implements

IAccessPolicyNameOptions
Back to top Generated by DocFX