Class AccessScope
Represents the scope of an access policy.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EKSv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AccessScope : IAccessScope
Syntax (vb)
Public Class AccessScope Implements IAccessScope
Remarks
The scope defines the namespaces or cluster-level access granted by the policy.
Interface: AccessScope
Property: {AccessScopeType} type - The scope type of the policy, either 'namespace' or 'cluster'.
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.EKSv2;
var accessScope = new AccessScope {
Type = AccessScopeType.NAMESPACE,
// the properties below are optional
Namespaces = new [] { "namespaces" }
};
Synopsis
Constructors
| AccessScope() | Represents the scope of an access policy. |
Properties
| Namespaces | A Kubernetes namespace that an access policy is scoped to. |
| Type | The scope type of the policy, either 'namespace' or 'cluster'. |
Constructors
AccessScope()
Represents the scope of an access policy.
public AccessScope()
Remarks
The scope defines the namespaces or cluster-level access granted by the policy.
Interface: AccessScope
Property: {AccessScopeType} type - The scope type of the policy, either 'namespace' or 'cluster'.
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.EKSv2;
var accessScope = new AccessScope {
Type = AccessScopeType.NAMESPACE,
// the properties below are optional
Namespaces = new [] { "namespaces" }
};
Properties
Namespaces
A Kubernetes namespace that an access policy is scoped to.
public string[]? Namespaces { get; set; }
Property Value
string[]
Remarks
A value is required if you specified namespace for Type.
Default: - no specific namespaces for this scope.
Type
The scope type of the policy, either 'namespace' or 'cluster'.
public AccessScopeType Type { get; set; }
Property Value
Remarks
The scope defines the namespaces or cluster-level access granted by the policy.
Interface: AccessScope
Property: {AccessScopeType} type - The scope type of the policy, either 'namespace' or 'cluster'.
ExampleMetadata: fixture=_generated