Interface PolicyDefinition.Builder

  • 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 the CedarPolicy.Builder avoiding the need to create one manually via CedarPolicy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to cedar(CedarPolicy).

      Parameters:
      cedar - a consumer that will call methods on CedarPolicy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • policyGeneration

      PolicyDefinition.Builder policyGeneration(PolicyGenerationDetails policyGeneration)

      The generated policy asset information within the policy definition structure. This contains information identifying a generated policy asset from the AI-powered policy generation process within the AgentCore Policy system. Each asset contains a Cedar policy statement generated from natural language input, along with associated metadata and analysis findings to help users evaluate and select the most appropriate policy option.

      Parameters:
      policyGeneration - The generated policy asset information within the policy definition structure. This contains information identifying a generated policy asset from the AI-powered policy generation process within the AgentCore Policy system. Each asset contains a Cedar policy statement generated from natural language input, along with associated metadata and analysis findings to help users evaluate and select the most appropriate policy option.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyGeneration

      default PolicyDefinition.Builder policyGeneration(Consumer<PolicyGenerationDetails.Builder> policyGeneration)

      The generated policy asset information within the policy definition structure. This contains information identifying a generated policy asset from the AI-powered policy generation process within the AgentCore Policy system. Each asset contains a Cedar policy statement generated from natural language input, along with associated metadata and analysis findings to help users evaluate and select the most appropriate policy option.

      This is a convenience method that creates an instance of the PolicyGenerationDetails.Builder avoiding the need to create one manually via PolicyGenerationDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to policyGeneration(PolicyGenerationDetails).

      Parameters:
      policyGeneration - a consumer that will call methods on PolicyGenerationDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: