Interface PolicyDefinition.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PolicyDefinition.Builder,,PolicyDefinition> SdkBuilder<PolicyDefinition.Builder,,PolicyDefinition> SdkPojo
- Enclosing class:
PolicyDefinition
-
Method Summary
Modifier and TypeMethodDescriptiondefault PolicyDefinition.Buildercedar(Consumer<CedarPolicy.Builder> cedar) The Cedar policy definition within the policy definition structure.cedar(CedarPolicy cedar) The Cedar policy definition within the policy definition structure.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
cedar
The Cedar policy definition within the policy definition structure. This contains the Cedar policy statement that defines the authorization logic using Cedar's human-readable, analyzable policy language. Cedar policies specify principals (who can access), actions (what operations are allowed), resources (what can be accessed), and optional conditions for fine-grained control. Cedar provides a formal policy language designed for authorization with deterministic evaluation, making policies testable, reviewable, and auditable. All Cedar policies follow a default-deny model where actions are denied unless explicitly permitted, and forbid policies always override permit policies.
- Parameters:
cedar- The Cedar policy definition within the policy definition structure. This contains the Cedar policy statement that defines the authorization logic using Cedar's human-readable, analyzable policy language. Cedar policies specify principals (who can access), actions (what operations are allowed), resources (what can be accessed), and optional conditions for fine-grained control. Cedar provides a formal policy language designed for authorization with deterministic evaluation, making policies testable, reviewable, and auditable. All Cedar policies follow a default-deny model where actions are denied unless explicitly permitted, and forbid policies always override permit policies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cedar
The Cedar policy definition within the policy definition structure. This contains the Cedar policy statement that defines the authorization logic using Cedar's human-readable, analyzable policy language. Cedar policies specify principals (who can access), actions (what operations are allowed), resources (what can be accessed), and optional conditions for fine-grained control. Cedar provides a formal policy language designed for authorization with deterministic evaluation, making policies testable, reviewable, and auditable. All Cedar policies follow a default-deny model where actions are denied unless explicitly permitted, and forbid policies always override permit policies.
This is a convenience method that creates an instance of theCedarPolicy.Builderavoiding the need to create one manually viaCedarPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocedar(CedarPolicy).- Parameters:
cedar- a consumer that will call methods onCedarPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-