Class DiscoveryFilter


  • public final class DiscoveryFilter
    extends Object
    This class stores the configuration for filtering AWS KMS CMK ARNs by AWS account ID and partition.

    The filter allows a KMS CMK if its partition matches partition and its accountId is included in accountIds.

    • Constructor Detail

      • DiscoveryFilter

        public DiscoveryFilter​(String partition,
                               String... accountIds)
    • Method Detail

      • getPartition

        public String getPartition()
      • allowsPartitionAndAccount

        public boolean allowsPartitionAndAccount​(String partition,
                                                 String accountId)