Interface CfnAccessEntry.AccessPolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAccessEntry.AccessPolicyProperty.Jsii$Proxy
- Enclosing class:
CfnAccessEntry
@Stability(Stable)
public static interface CfnAccessEntry.AccessPolicyProperty
extends software.amazon.jsii.JsiiSerializable
An access policy includes permissions that allow Amazon EKS to authorize an IAM principal to work with Kubernetes objects on your cluster.
The policies are managed by Amazon EKS, but they're not IAM policies. You can't view the permissions in the policies using the API. The permissions for many of the policies are similar to the Kubernetes cluster-admin , admin , edit , and view cluster roles. For more information about these cluster roles, see User-facing roles in the Kubernetes documentation. To view the contents of the policies, see Access policy permissions in the Amazon EKS User Guide .
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.*;
AccessPolicyProperty accessPolicyProperty = AccessPolicyProperty.builder()
.accessScope(AccessScopeProperty.builder()
.type("type")
// the properties below are optional
.namespaces(List.of("namespaces"))
.build())
.policyArn("policyArn")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAccessEntry.AccessPolicyPropertystatic final classAn implementation forCfnAccessEntry.AccessPolicyProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The scope of anAccessPolicythat's associated to anAccessEntry.The ARN of the access policy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessScope
The scope of anAccessPolicythat's associated to anAccessEntry.Returns union: either
IResolvableorCfnAccessEntry.AccessScopeProperty- See Also:
-
getPolicyArn
The ARN of the access policy.- See Also:
-
builder
-