Class AccessPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.eks.AccessPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessPolicy>
- Enclosing class:
AccessPolicy
@Stability(Stable)
public static final class AccessPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<AccessPolicy>
A fluent builder for
AccessPolicy.-
Method Summary
Modifier and TypeMethodDescriptionaccessScope(AccessScope accessScope) The scope of the access policy, which determines the level of access granted.build()static AccessPolicy.Buildercreate()policy(AccessPolicyArn policy) The access policy itself, which defines the specific permissions.
-
Method Details
-
create
- Returns:
- a new instance of
AccessPolicy.Builder.
-
accessScope
The scope of the access policy, which determines the level of access granted.- Parameters:
accessScope- The scope of the access policy, which determines the level of access granted. This parameter is required.- Returns:
this
-
policy
The access policy itself, which defines the specific permissions.- Parameters:
policy- The access policy itself, which defines the specific permissions. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AccessPolicy>- Returns:
- a newly built instance of
AccessPolicy.
-