# -*- coding: utf-8 -*-
from .regexanalyzer import RegexAnalyzer


class AWSAccessKeyAnalyzer(RegexAnalyzer):
    """Analyzer to match AWS Access Key via regex.

    Keys are 20 character alphanumeric /+=
    """
    name = "AWSAccessKeyAnalyzer"

    def __init__(self, actions):
        # https://people.eecs.berkeley.edu/~rohanpadhye/files/key_leaks-msr15.pdf
        regex = r"\b(?:A3T[A-Z0-9]|AKIA|AGPA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}\b"
        super().__init__(actions, regex)

bccf68d20cdf07ca40df1a796114409529f051fe
<mask token>


class AWSAccessKeyAnalyzer(RegexAnalyzer):
    <mask token>
    <mask token>

    def __init__(self, actions):
        regex = (
            '\\b(?:A3T[A-Z0-9]|AKIA|AGPA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}\\b'
            )
        super().__init__(actions, regex)

<mask token>


class AWSAccessKeyAnalyzer(RegexAnalyzer):
    <mask token>
    name = 'AWSAccessKeyAnalyzer'

    def __init__(self, actions):
        regex = (
            '\\b(?:A3T[A-Z0-9]|AKIA|AGPA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}\\b'
            )
        super().__init__(actions, regex)

<mask token>


class AWSAccessKeyAnalyzer(RegexAnalyzer):
    """Analyzer to match AWS Access Key via regex.

    Keys are 20 character alphanumeric /+=
    """
    name = 'AWSAccessKeyAnalyzer'

    def __init__(self, actions):
        regex = (
            '\\b(?:A3T[A-Z0-9]|AKIA|AGPA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}\\b'
            )
        super().__init__(actions, regex)

from .regexanalyzer import RegexAnalyzer


class AWSAccessKeyAnalyzer(RegexAnalyzer):
    """Analyzer to match AWS Access Key via regex.

    Keys are 20 character alphanumeric /+=
    """
    name = 'AWSAccessKeyAnalyzer'

    def __init__(self, actions):
        regex = (
            '\\b(?:A3T[A-Z0-9]|AKIA|AGPA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}\\b'
            )
        super().__init__(actions, regex)

# -*- coding: utf-8 -*-
from .regexanalyzer import RegexAnalyzer


class AWSAccessKeyAnalyzer(RegexAnalyzer):
    """Analyzer to match AWS Access Key via regex.

    Keys are 20 character alphanumeric /+=
    """
    name = "AWSAccessKeyAnalyzer"

    def __init__(self, actions):
        # https://people.eecs.berkeley.edu/~rohanpadhye/files/key_leaks-msr15.pdf
        regex = r"\b(?:A3T[A-Z0-9]|AKIA|AGPA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}\b"
        super().__init__(actions, regex)
