Class: Aws::SecurityHub::Types::Compliance

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb

Overview

Note:

When making an API call, you may pass Compliance data as a hash:

{
  status: "PASSED", # accepts PASSED, WARNING, FAILED, NOT_AVAILABLE
  related_requirements: ["NonEmptyString"],
  status_reasons: [
    {
      reason_code: "NonEmptyString", # required
      description: "NonEmptyString",
    },
  ],
}

Contains finding details that are specific to control-based findings. Only returned for findings generated from controls.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

For a control, the industry or regulatory framework requirements that are related to the control. The check for that control is aligned with these requirements.

Returns:

  • (Array<String>)


5933
5934
5935
5936
5937
5938
5939
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 5933

class Compliance < Struct.new(
  :status,
  :related_requirements,
  :status_reasons)
  SENSITIVE = []
  include Aws::Structure
end

#statusString

The result of a standards check.

The valid values for Status are as follows.

    • PASSED - Standards check passed for all evaluated resources.

    • WARNING - Some information is missing or this check is not supported for your configuration.

    • FAILED - Standards check failed for at least one evaluated resource.

    • NOT_AVAILABLE - Check could not be performed due to a service outage, API error, or because the result of the AWS Config evaluation was NOT_APPLICABLE. If the AWS Config evaluation result was NOT_APPLICABLE, then after 3 days, Security Hub automatically archives the finding.

Returns:

  • (String)


5933
5934
5935
5936
5937
5938
5939
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 5933

class Compliance < Struct.new(
  :status,
  :related_requirements,
  :status_reasons)
  SENSITIVE = []
  include Aws::Structure
end

#status_reasonsArray<Types::StatusReason>

For findings generated from controls, a list of reasons behind the value of Status. For the list of status reason codes and their meanings, see Standards-related information in the ASFF in the AWS Security Hub User Guide.

Returns:



5933
5934
5935
5936
5937
5938
5939
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 5933

class Compliance < Struct.new(
  :status,
  :related_requirements,
  :status_reasons)
  SENSITIVE = []
  include Aws::Structure
end