Class AccessPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.eks.AccessPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessPolicyProps>
- Enclosing interface:
AccessPolicyProps
@Stability(Stable)
public static final class AccessPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<AccessPolicyProps>
A builder for
AccessPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessScope(AccessScope accessScope) Sets the value ofAccessPolicyProps.getAccessScope()build()Builds the configured instance.policy(AccessPolicyArn policy) Sets the value ofAccessPolicyProps.getPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessScope
Sets the value ofAccessPolicyProps.getAccessScope()- Parameters:
accessScope- The scope of the access policy, which determines the level of access granted. This parameter is required.- Returns:
this
-
policy
Sets the value ofAccessPolicyProps.getPolicy()- Parameters:
policy- The access policy itself, which defines the specific permissions. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AccessPolicyProps>- Returns:
- a new instance of
AccessPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-