AccessScope
- class aws_cdk.aws_eks.AccessScope(*, type, namespaces=None)
Bases:
objectRepresents the scope of an access policy.
The scope defines the namespaces or cluster-level access granted by the policy.
- Parameters:
type (
AccessScopeType) – The scope type of the policy, either ‘namespace’ or ‘cluster’.namespaces (
Optional[Sequence[str]]) – 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.
- Interface:
AccessScope
- Property:
{AccessScopeType} type - The scope type of the policy, either ‘namespace’ or ‘cluster’.
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_eks as eks access_scope = eks.AccessScope( type=eks.AccessScopeType.NAMESPACE, # the properties below are optional namespaces=["namespaces"] )
Attributes
- namespaces
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.
- type
The scope type of the policy, either ‘namespace’ or ‘cluster’.