Interface MatchedPolicy.Builder

  • Method Details

    • uri

      The URI of the policy. This cross-references an entry in the top-level policies list. The value depends on the policy type:

      • For managed policies, this is the policy ARN.

      • For inline policies, this is an opaque identifier.

      Parameters:
      uri - The URI of the policy. This cross-references an entry in the top-level policies list. The value depends on the policy type:

      • For managed policies, this is the policy ARN.

      • For inline policies, this is an opaque identifier.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matchedStatements

      MatchedPolicy.Builder matchedStatements(Collection<MatchedStatement> matchedStatements)

      The statements within the policy that matched during the evaluation.

      Parameters:
      matchedStatements - The statements within the policy that matched during the evaluation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matchedStatements

      MatchedPolicy.Builder matchedStatements(MatchedStatement... matchedStatements)

      The statements within the policy that matched during the evaluation.

      Parameters:
      matchedStatements - The statements within the policy that matched during the evaluation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matchedStatements

      MatchedPolicy.Builder matchedStatements(Consumer<MatchedStatement.Builder>... matchedStatements)

      The statements within the policy that matched during the evaluation.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to matchedStatements(List<MatchedStatement>).

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