FMS / Client / get_compliance_detail



Returns detailed compliance information about the specified member account. Details include resources that are in and out of compliance with the specified policy.

The reasons for resources being considered compliant depend on the Firewall Manager policy type.

See also: AWS API Documentation

Request Syntax

response = client.get_compliance_detail(
  • PolicyId (string) –


    The ID of the policy that you want to get the details for. PolicyId is returned by PutPolicy and by ListPolicies.

  • MemberAccount (string) –


    The Amazon Web Services account that owns the resources that you want to get the details for.

Return type:



Response Syntax

    'PolicyComplianceDetail': {
        'PolicyOwner': 'string',
        'PolicyId': 'string',
        'MemberAccount': 'string',
        'Violators': [
                'ResourceId': 'string',
                'ResourceType': 'string',
                'Metadata': {
                    'string': 'string'
        'EvaluationLimitExceeded': True|False,
        'ExpiredAt': datetime(2015, 1, 1),
        'IssueInfoMap': {
            'string': 'string'

Response Structure

  • (dict) –

    • PolicyComplianceDetail (dict) –

      Information about the resources and the policy that you specified in the GetComplianceDetail request.

      • PolicyOwner (string) –

        The Amazon Web Services account that created the Firewall Manager policy.

      • PolicyId (string) –

        The ID of the Firewall Manager policy.

      • MemberAccount (string) –

        The Amazon Web Services account ID.

      • Violators (list) –

        An array of resources that aren’t protected by the WAF or Shield Advanced policy or that aren’t in compliance with the security group policy.

        • (dict) –

          Details of the resource that is not protected by the policy.

          • ResourceId (string) –

            The resource ID.

          • ViolationReason (string) –

            The reason that the resource is not protected by the policy.

          • ResourceType (string) –

            The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. For example: AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::CloudFront::Distribution, or AWS::NetworkFirewall::FirewallPolicy.

          • Metadata (dict) –

            Metadata about the resource that doesn’t comply with the policy scope.

            • (string) –

              • (string) –

      • EvaluationLimitExceeded (boolean) –

        Indicates if over 100 resources are noncompliant with the Firewall Manager policy.

      • ExpiredAt (datetime) –

        A timestamp that indicates when the returned information should be considered out of date.

      • IssueInfoMap (dict) –

        Details about problems with dependent services, such as WAF or Config, and the error message received that indicates the problem with the service.

        • (string) –

          • (string) –