Module Smaws_Client_Inspector.Types

type nonrec version = string
type nonrec attribute_key = string
type nonrec attribute_value = string
type nonrec attribute = {
  1. value : attribute_value option;
    (*

    The value assigned to the attribute key.

    *)
  2. key : attribute_key;
    (*

    The attribute key.

    *)
}

This data type is used as a request parameter in the AddAttributesToFindings and CreateAssessmentTemplate actions.

type nonrec user_attribute_list = attribute list
type nonrec user_attribute_key_list = attribute_key list
type nonrec url = string
type nonrec arn = string
type nonrec assessment_target_name = string
type nonrec update_assessment_target_request = {
  1. resource_group_arn : arn option;
    (*

    The ARN of the resource group that is used to specify the new resource group to associate with the assessment target.

    *)
  2. assessment_target_name : assessment_target_name;
    (*

    The name of the assessment target that you want to update.

    *)
  3. assessment_target_arn : arn;
    (*

    The ARN of the assessment target that you want to update.

    *)
}
type nonrec error_message = string
type nonrec bool_ = bool
type nonrec service_temporarily_unavailable_exception = {
  1. can_retry : bool_;
    (*

    You can wait and then retry your request.

    *)
  2. message : error_message;
    (*

    Details of the exception error.

    *)
}

The serice is temporary unavailable.

type nonrec no_such_entity_error_code =
  1. | IAM_ROLE_DOES_NOT_EXIST
  2. | SNS_TOPIC_DOES_NOT_EXIST
  3. | RULES_PACKAGE_DOES_NOT_EXIST
  4. | RESOURCE_GROUP_DOES_NOT_EXIST
  5. | FINDING_DOES_NOT_EXIST
  6. | ASSESSMENT_RUN_DOES_NOT_EXIST
  7. | ASSESSMENT_TEMPLATE_DOES_NOT_EXIST
  8. | ASSESSMENT_TARGET_DOES_NOT_EXIST
type nonrec no_such_entity_exception = {
  1. can_retry : bool_;
    (*

    You can immediately retry your request.

    *)
  2. error_code : no_such_entity_error_code;
    (*

    Code that indicates the type of error that is generated.

    *)
  3. message : error_message;
    (*

    Details of the exception error.

    *)
}

The request was rejected because it referenced an entity that does not exist. The error code describes the entity.

type nonrec invalid_input_error_code =
  1. | INVALID_NUMBER_OF_SEVERITIES
  2. | INVALID_NUMBER_OF_RULE_NAMES
  3. | INVALID_NUMBER_OF_AUTO_SCALING_GROUPS
  4. | INVALID_NUMBER_OF_AGENT_IDS
  5. | INVALID_NUMBER_OF_USER_ATTRIBUTES
  6. | INVALID_NUMBER_OF_ATTRIBUTES
  7. | INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS
  8. | INVALID_NUMBER_OF_TAGS
  9. | INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES
  10. | INVALID_NUMBER_OF_RULES_PACKAGE_ARNS
  11. | INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS
  12. | INVALID_NUMBER_OF_FINDING_ARNS
  13. | INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS
  14. | INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS
  15. | INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS
  16. | ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN
  17. | ASSESSMENT_TARGET_NAME_ALREADY_TAKEN
  18. | INVALID_EVENT
  19. | INVALID_LOCALE
  20. | INVALID_SEVERITY
  21. | INVALID_RULE_NAME
  22. | INVALID_AUTO_SCALING_GROUP
  23. | INVALID_AGENT_ID
  24. | INVALID_MAX_RESULTS
  25. | INVALID_PAGINATION_TOKEN
  26. | INVALID_USER_ATTRIBUTE_VALUE
  27. | INVALID_USER_ATTRIBUTE_KEY
  28. | INVALID_USER_ATTRIBUTE
  29. | INVALID_ATTRIBUTE
  30. | INVALID_RESOURCE_GROUP_TAG_VALUE
  31. | INVALID_RESOURCE_GROUP_TAG_KEY
  32. | INVALID_TAG_VALUE
  33. | INVALID_TAG_KEY
  34. | INVALID_TAG
  35. | INVALID_ASSESSMENT_RUN_STATE
  36. | INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE
  37. | INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE
  38. | INVALID_ASSESSMENT_RUN_START_TIME_RANGE
  39. | INVALID_ASSESSMENT_RUN_DURATION_RANGE
  40. | INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE
  41. | INVALID_ASSESSMENT_TEMPLATE_DURATION
  42. | INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN
  43. | INVALID_ASSESSMENT_TEMPLATE_NAME
  44. | INVALID_ASSESSMENT_TARGET_NAME_PATTERN
  45. | INVALID_ASSESSMENT_TARGET_NAME
  46. | INVALID_IAM_ROLE_ARN
  47. | INVALID_SNS_TOPIC_ARN
  48. | INVALID_RESOURCE_ARN
  49. | INVALID_RULES_PACKAGE_ARN
  50. | INVALID_RESOURCE_GROUP_ARN
  51. | INVALID_FINDING_ARN
  52. | INVALID_ASSESSMENT_RUN_ARN
  53. | INVALID_ASSESSMENT_TEMPLATE_ARN
  54. | INVALID_ASSESSMENT_TARGET_ARN
type nonrec invalid_input_exception = {
  1. can_retry : bool_;
    (*

    You can immediately retry your request.

    *)
  2. error_code : invalid_input_error_code;
    (*

    Code that indicates the type of error that is generated.

    *)
  3. message : error_message;
    (*

    Details of the exception error.

    *)
}

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

type nonrec internal_exception = {
  1. can_retry : bool_;
    (*

    You can immediately retry your request.

    *)
  2. message : error_message;
    (*

    Details of the exception error.

    *)
}

Internal server error.

type nonrec access_denied_error_code =
  1. | ACCESS_DENIED_TO_IAM_ROLE
  2. | ACCESS_DENIED_TO_SNS_TOPIC
  3. | ACCESS_DENIED_TO_RULES_PACKAGE
  4. | ACCESS_DENIED_TO_RESOURCE_GROUP
  5. | ACCESS_DENIED_TO_FINDING
  6. | ACCESS_DENIED_TO_ASSESSMENT_RUN
  7. | ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE
  8. | ACCESS_DENIED_TO_ASSESSMENT_TARGET
type nonrec access_denied_exception = {
  1. can_retry : bool_;
    (*

    You can immediately retry your request.

    *)
  2. error_code : access_denied_error_code;
    (*

    Code that indicates the type of error that is generated.

    *)
  3. message : error_message;
    (*

    Details of the exception error.

    *)
}

You do not have required permissions to access the requested resource.

type nonrec unsupported_feature_exception = {
  1. can_retry : bool_;
  2. message : error_message;
}

Used by the GetAssessmentReport API. The request was rejected because you tried to generate a report for an assessment run that existed before reporting was supported in Amazon Inspector. You can only generate reports for assessment runs that took place or will take place after generating reports in Amazon Inspector became available.

type nonrec inspector_event =
  1. | OTHER
  2. | FINDING_REPORTED
  3. | ASSESSMENT_RUN_STATE_CHANGED
  4. | ASSESSMENT_RUN_COMPLETED
  5. | ASSESSMENT_RUN_STARTED
type nonrec unsubscribe_from_event_request = {
  1. topic_arn : arn;
    (*

    The ARN of the SNS topic to which SNS notifications are sent.

    *)
  2. event : inspector_event;
    (*

    The event for which you want to stop receiving SNS notifications.

    *)
  3. resource_arn : arn;
    (*

    The ARN of the assessment template that is used during the event for which you want to stop receiving SNS notifications.

    *)
}
type nonrec uui_d = string
type nonrec timestamp = Smaws_Lib.CoreTypes.Timestamp.t
type nonrec timestamp_range = {
  1. end_date : timestamp option;
    (*

    The maximum value of the timestamp range.

    *)
  2. begin_date : timestamp option;
    (*

    The minimum value of the timestamp range.

    *)
}

This data type is used in the AssessmentRunFilter data type.

type nonrec text = string
type nonrec message_type = string
type nonrec long = Smaws_Lib.CoreTypes.Int64.t
type nonrec telemetry_metadata = {
  1. data_size : long option;
    (*

    The data size of messages that the agent sends to the Amazon Inspector service.

    *)
  2. count : long;
    (*

    The count of messages that the agent sends to the Amazon Inspector service.

    *)
  3. message_type : message_type;
    (*

    A specific type of behavioral data that is collected by the agent.

    *)
}

The metadata about the Amazon Inspector application data metrics collected by the agent. This data type is used as the response element in the GetTelemetryMetadata action.

type nonrec telemetry_metadata_list = telemetry_metadata list
type nonrec tag_key = string
type nonrec tag_value = string
type nonrec tag = {
  1. value : tag_value option;
    (*

    A value assigned to a tag key.

    *)
  2. key : tag_key;
    (*

    A tag key.

    *)
}

A key and value pair. This data type is used as a request parameter in the SetTagsForResource action and a response element in the ListTagsForResource action.

type nonrec tags = tag list
type nonrec tag_list = tag list
type nonrec event_subscription = {
  1. subscribed_at : timestamp;
    (*

    The time at which SubscribeToEvent is called.

    *)
  2. event : inspector_event;
    (*

    The event for which Amazon Simple Notification Service (SNS) notifications are sent.

    *)
}

This data type is used in the Subscription data type.

type nonrec event_subscription_list = event_subscription list
type nonrec subscription = {
  1. event_subscriptions : event_subscription_list;
    (*

    The list of existing event subscriptions.

    *)
  2. topic_arn : arn;
    (*

    The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.

    *)
  3. resource_arn : arn;
    (*

    The ARN of the assessment template that is used during the event for which the SNS notification is sent.

    *)
}

This data type is used as a response element in the ListEventSubscriptions action.

type nonrec subscription_list = subscription list
type nonrec subscribe_to_event_request = {
  1. topic_arn : arn;
    (*

    The ARN of the SNS topic to which the SNS notifications are sent.

    *)
  2. event : inspector_event;
    (*

    The event for which you want to receive SNS notifications.

    *)
  3. resource_arn : arn;
    (*

    The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.

    *)
}
type nonrec limit_exceeded_error_code =
  1. | EVENT_SUBSCRIPTION_LIMIT_EXCEEDED
  2. | RESOURCE_GROUP_LIMIT_EXCEEDED
  3. | ASSESSMENT_RUN_LIMIT_EXCEEDED
  4. | ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED
  5. | ASSESSMENT_TARGET_LIMIT_EXCEEDED
type nonrec limit_exceeded_exception = {
  1. can_retry : bool_;
    (*

    You can immediately retry your request.

    *)
  2. error_code : limit_exceeded_error_code;
    (*

    Code that indicates the type of error that is generated.

    *)
  3. message : error_message;
    (*

    Details of the exception error.

    *)
}

The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.

type nonrec stop_action =
  1. | SKIP_EVALUATION
  2. | START_EVALUATION
type nonrec stop_assessment_run_request = {
  1. stop_action : stop_action option;
    (*

    An input option that can be set to either START_EVALUATION or SKIP_EVALUATION. START_EVALUATION (the default value), stops the AWS agent from collecting data and begins the results evaluation and the findings generation process. SKIP_EVALUATION cancels the assessment run immediately, after which no findings are generated.

    *)
  2. assessment_run_arn : arn;
    (*

    The ARN of the assessment run that you want to stop.

    *)
}
type nonrec start_assessment_run_response = {
  1. assessment_run_arn : arn;
    (*

    The ARN of the assessment run that has been started.

    *)
}
type nonrec assessment_run_name = string
type nonrec start_assessment_run_request = {
  1. assessment_run_name : assessment_run_name option;
    (*

    You can specify the name for the assessment run. The name must be unique for the assessment template whose ARN is used to start the assessment run.

    *)
  2. assessment_template_arn : arn;
    (*

    The ARN of the assessment template of the assessment run that you want to start.

    *)
}
type nonrec invalid_cross_account_role_error_code =
  1. | ROLE_DOES_NOT_HAVE_CORRECT_POLICY
  2. | ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP
type nonrec invalid_cross_account_role_exception = {
  1. can_retry : bool_;
    (*

    You can immediately retry your request.

    *)
  2. error_code : invalid_cross_account_role_error_code;
    (*

    Code that indicates the type of error that is generated.

    *)
  3. message : error_message;
    (*

    Details of the exception error.

    *)
}

Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.

type nonrec agent_id = string
type nonrec agent_already_running_assessment = {
  1. assessment_run_arn : arn;
    (*

    The ARN of the assessment run that has already been started.

    *)
  2. agent_id : agent_id;
    (*

    ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.

    *)
}

Used in the exception error that is thrown if you start an assessment run for an assessment target that includes an EC2 instance that is already participating in another started assessment run.

type nonrec agent_already_running_assessment_list = agent_already_running_assessment list
type nonrec agents_already_running_assessment_exception = {
  1. can_retry : bool_;
    (*

    You can immediately retry your request.

    *)
  2. agents_truncated : bool_;
  3. agents : agent_already_running_assessment_list;
  4. message : error_message;
    (*

    Details of the exception error.

    *)
}

You started an assessment run, but one of the instances is already participating in another assessment run.

type nonrec severity =
  1. | UNDEFINED
  2. | INFORMATIONAL
  3. | HIGH
  4. | MEDIUM
  5. | LOW
type nonrec severity_list = severity list
type nonrec set_tags_for_resource_request = {
  1. tags : tag_list option;
    (*

    A collection of key and value pairs that you want to set to the assessment template.

    *)
  2. resource_arn : arn;
    (*

    The ARN of the assessment template that you want to set tags to.

    *)
}
type nonrec service_name = string
type nonrec security_group = {
  1. group_id : text option;
    (*

    The ID of the security group.

    *)
  2. group_name : text option;
    (*

    The name of the security group.

    *)
}

Contains information about a security group associated with a network interface. This data type is used as one of the elements of the NetworkInterface data type.

type nonrec security_groups = security_group list
type nonrec scope_value = string
type nonrec scope_type =
  1. | RULES_PACKAGE_ARN
  2. | INSTANCE_ID
type nonrec scope = {
  1. value : scope_value option;
    (*

    The resource identifier for the specified scope type.

    *)
  2. key : scope_type option;
    (*

    The type of the scope.

    *)
}

This data type contains key-value pairs that identify various Amazon resources.

type nonrec scope_list = scope list
type nonrec rules_package_name = string
type nonrec provider_name = string
type nonrec rules_package = {
  1. description : text option;
    (*

    The description of the rules package.

    *)
  2. provider : provider_name;
    (*

    The provider of the rules package.

    *)
  3. version : version;
    (*

    The version ID of the rules package.

    *)
  4. name : rules_package_name;
    (*

    The name of the rules package.

    *)
  5. arn : arn;
    (*

    The ARN of the rules package.

    *)
}

Contains information about an Amazon Inspector rules package. This data type is used as the response element in the DescribeRulesPackages action.

type nonrec rules_package_list = rules_package list
type nonrec rule_name = string
type nonrec rule_name_list = rule_name list
type nonrec resource_group_tag = {
  1. value : tag_value option;
    (*

    The value assigned to a tag key.

    *)
  2. key : tag_key;
    (*

    A tag key.

    *)
}

This data type is used as one of the elements of the ResourceGroup data type.

type nonrec resource_group_tags = resource_group_tag list
type nonrec resource_group = {
  1. created_at : timestamp;
    (*

    The time at which resource group is created.

    *)
  2. tags : resource_group_tags;
    (*

    The tags (key and value pairs) of the resource group. This data type property is used in the CreateResourceGroup action.

    *)
  3. arn : arn;
    (*

    The ARN of the resource group.

    *)
}

Contains information about a resource group. The resource group defines a set of tags that, when queried, identify the AWS resources that make up the assessment target. This data type is used as the response element in the DescribeResourceGroups action.

type nonrec resource_group_list = resource_group list
type nonrec report_type =
  1. | FULL
  2. | FINDING
type nonrec report_status =
  1. | COMPLETED
  2. | FAILED
  3. | WORK_IN_PROGRESS
type nonrec report_file_format =
  1. | PDF
  2. | HTML
type nonrec failed_item_error_code =
  1. | INTERNAL_ERROR
  2. | LIMIT_EXCEEDED
  3. | ACCESS_DENIED
  4. | ITEM_DOES_NOT_EXIST
  5. | DUPLICATE_ARN
  6. | INVALID_ARN
type nonrec failed_item_details = {
  1. retryable : bool_;
    (*

    Indicates whether you can immediately retry a request for this item for a specified resource.

    *)
  2. failure_code : failed_item_error_code;
    (*

    The status code of a failed item.

    *)
}

Includes details about the failed items.

type nonrec failed_items = (arn * failed_item_details) list
type nonrec remove_attributes_from_findings_response = {
  1. failed_items : failed_items;
    (*

    Attributes details that cannot be described. An error code is provided for each failed item.

    *)
}
type nonrec add_remove_attributes_finding_arn_list = arn list
type nonrec remove_attributes_from_findings_request = {
  1. attribute_keys : user_attribute_key_list;
    (*

    The array of attribute keys that you want to remove from specified findings.

    *)
  2. finding_arns : add_remove_attributes_finding_arn_list;
    (*

    The ARNs that specify the findings that you want to remove attributes from.

    *)
}
type nonrec register_cross_account_access_role_request = {
  1. role_arn : arn;
    (*

    The ARN of the IAM role that grants Amazon Inspector access to AWS Services needed to perform security assessments.

    *)
}
type nonrec private_ip = {
  1. private_ip_address : text option;
    (*

    The full IP address of the network inteface.

    *)
  2. private_dns_name : text option;
    (*

    The DNS name of the private IP address.

    *)
}

Contains information about a private IP address associated with a network interface. This data type is used as a response element in the DescribeFindings action.

type nonrec private_ip_addresses = private_ip list
type nonrec preview_status =
  1. | COMPLETED
  2. | WORK_IN_PROGRESS
type nonrec preview_generation_in_progress_exception = {
  1. message : error_message;
}

The request is rejected. The specified assessment template is currently generating an exclusions preview.

type nonrec hostname = string
type nonrec auto_scaling_group = string
type nonrec agent_health =
  1. | UNKNOWN
  2. | UNHEALTHY
  3. | HEALTHY
type nonrec agent_version = string
type nonrec operating_system = string
type nonrec kernel_version = string
type nonrec ipv4_address = string
type nonrec agent_preview = {
  1. ipv4_address : ipv4_address option;
    (*

    The IP address of the EC2 instance on which the Amazon Inspector Agent is installed.

    *)
  2. kernel_version : kernel_version option;
    (*

    The kernel version of the operating system running on the EC2 instance on which the Amazon Inspector Agent is installed.

    *)
  3. operating_system : operating_system option;
    (*

    The operating system running on the EC2 instance on which the Amazon Inspector Agent is installed.

    *)
  4. agent_version : agent_version option;
    (*

    The version of the Amazon Inspector Agent.

    *)
  5. agent_health : agent_health option;
    (*

    The health status of the Amazon Inspector Agent.

    *)
  6. auto_scaling_group : auto_scaling_group option;
    (*

    The Auto Scaling group for the EC2 instance where the agent is installed.

    *)
  7. agent_id : agent_id;
    (*

    The ID of the EC2 instance where the agent is installed.

    *)
  8. hostname : hostname option;
    (*

    The hostname of the EC2 instance on which the Amazon Inspector Agent is installed.

    *)
}

Used as a response element in the PreviewAgents action.

type nonrec agent_preview_list = agent_preview list
type nonrec pagination_token = string
type nonrec preview_agents_response = {
  1. next_token : pagination_token option;
    (*

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    *)
  2. agent_previews : agent_preview_list;
    (*

    The resulting list of agents.

    *)
}
type nonrec preview_agents_max_results = int
type nonrec preview_agents_request = {
  1. max_results : preview_agents_max_results option;
    (*

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    *)
  2. next_token : pagination_token option;
    (*

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the PreviewAgents action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    *)
  3. preview_agents_arn : arn;
    (*

    The ARN of the assessment target whose agents you want to preview.

    *)
}
type nonrec numeric_version = int
type nonrec numeric_severity = float
type nonrec ipv6_addresses = text list
type nonrec network_interface = {
  1. security_groups : security_groups option;
    (*

    A list of the security groups associated with the network interface. Includes the groupId and groupName.

    *)
  2. ipv6_addresses : ipv6_addresses option;
    (*

    The IP addresses associated with the network interface.

    *)
  3. public_ip : text option;
    (*

    The public IP address from which the network interface is reachable.

    *)
  4. public_dns_name : text option;
    (*

    The name of a public DNS associated with the network interface.

    *)
  5. private_ip_addresses : private_ip_addresses option;
    (*

    A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.

    *)
  6. private_ip_address : text option;
    (*

    The private IP address associated with the network interface.

    *)
  7. private_dns_name : text option;
    (*

    The name of a private DNS associated with the network interface.

    *)
  8. vpc_id : text option;
    (*

    The ID of a VPC associated with the network interface.

    *)
  9. subnet_id : text option;
    (*

    The ID of a subnet associated with the network interface.

    *)
  10. network_interface_id : text option;
    (*

    The ID of the network interface.

    *)
}

Contains information about the network interfaces interacting with an EC2 instance. This data type is used as one of the elements of the AssetAttributes data type.

type nonrec network_interfaces = network_interface list
type nonrec name_pattern = string
type nonrec message = string
type nonrec locale =
  1. | EN_US
type nonrec list_tags_for_resource_response = {
  1. tags : tag_list;
    (*

    A collection of key and value pairs.

    *)
}
type nonrec list_tags_for_resource_request = {
  1. resource_arn : arn;
    (*

    The ARN that specifies the assessment template whose tags you want to list.

    *)
}
type nonrec list_returned_arn_list = arn list
type nonrec list_rules_packages_response = {
  1. next_token : pagination_token option;
    (*

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    *)
  2. rules_package_arns : list_returned_arn_list;
    (*

    The list of ARNs that specifies the rules packages returned by the action.

    *)
}
type nonrec list_max_results = int
type nonrec list_rules_packages_request = {
  1. max_results : list_max_results option;
    (*

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    *)
  2. next_token : pagination_token option;
    (*

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListRulesPackages action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    *)
}
type nonrec list_parent_arn_list = arn list
type nonrec list_findings_response = {
  1. next_token : pagination_token option;
    (*

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    *)
  2. finding_arns : list_returned_arn_list;
    (*

    A list of ARNs that specifies the findings returned by the action.

    *)
}
type nonrec agent_id_list = agent_id list
type nonrec auto_scaling_group_list = auto_scaling_group list
type nonrec filter_rules_package_arn_list = arn list
type nonrec attribute_list = attribute list
type nonrec finding_filter = {
  1. creation_time_range : timestamp_range option;
    (*

    The time range during which the finding is generated.

    *)
  2. user_attributes : attribute_list option;
    (*

    For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the userAttributes property of the Finding data type.

    *)
  3. attributes : attribute_list option;
    (*

    For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type.

    *)
  4. rules_package_arns : filter_rules_package_arn_list option;
    (*

    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type.

    *)
  5. severities : severity_list option;
    (*

    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.

    *)
  6. rule_names : rule_name_list option;
    (*

    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.

    *)
  7. auto_scaling_groups : auto_scaling_group_list option;
    (*

    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type.

    *)
  8. agent_ids : agent_id_list option;
    (*

    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type.

    *)
}

This data type is used as a request parameter in the ListFindings action.

type nonrec list_findings_request = {
  1. max_results : list_max_results option;
    (*

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    *)
  2. next_token : pagination_token option;
    (*

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListFindings action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    *)
  3. filter : finding_filter option;
    (*

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    *)
  4. assessment_run_arns : list_parent_arn_list option;
    (*

    The ARNs of the assessment runs that generate the findings that you want to list.

    *)
}
type nonrec list_exclusions_response = {
  1. next_token : pagination_token option;
    (*

    When a response is generated, if there is more data to be listed, this parameters is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    *)
  2. exclusion_arns : list_returned_arn_list;
    (*

    A list of exclusions' ARNs returned by the action.

    *)
}
type nonrec list_exclusions_request = {
  1. max_results : list_max_results option;
    (*

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 100. The maximum value is 500.

    *)
  2. next_token : pagination_token option;
    (*

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListExclusionsRequest action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.

    *)
  3. assessment_run_arn : arn;
    (*

    The ARN of the assessment run that generated the exclusions that you want to list.

    *)
}
type nonrec list_event_subscriptions_response = {
  1. next_token : pagination_token option;
    (*

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    *)
  2. subscriptions : subscription_list;
    (*

    Details of the returned event subscriptions.

    *)
}
type nonrec list_event_subscriptions_max_results = int
type nonrec list_event_subscriptions_request = {
  1. max_results : list_event_subscriptions_max_results option;
    (*

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    *)
  2. next_token : pagination_token option;
    (*

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListEventSubscriptions action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    *)
  3. resource_arn : arn option;
    (*

    The ARN of the assessment template for which you want to list the existing event subscriptions.

    *)
}
type nonrec list_assessment_templates_response = {
  1. next_token : pagination_token option;
    (*

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    *)
  2. assessment_template_arns : list_returned_arn_list;
    (*

    A list of ARNs that specifies the assessment templates returned by the action.

    *)
}
type nonrec assessment_run_duration = int
type nonrec duration_range = {
  1. max_seconds : assessment_run_duration option;
    (*

    The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).

    *)
  2. min_seconds : assessment_run_duration option;
    (*

    The minimum value of the duration range. Must be greater than zero.

    *)
}

This data type is used in the AssessmentTemplateFilter data type.

type nonrec assessment_template_filter = {
  1. rules_package_arns : filter_rules_package_arn_list option;
    (*

    For a record to match a filter, the values that are specified for this data type property must be contained in the list of values of the rulesPackageArns property of the AssessmentTemplate data type.

    *)
  2. duration_range : duration_range option;
    (*

    For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentTemplate data type.

    *)
  3. name_pattern : name_pattern option;
    (*

    For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTemplateName property of the AssessmentTemplate data type.

    *)
}

Used as the request parameter in the ListAssessmentTemplates action.

type nonrec list_assessment_templates_request = {
  1. max_results : list_max_results option;
    (*

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    *)
  2. next_token : pagination_token option;
    (*

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentTemplates action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    *)
  3. filter : assessment_template_filter option;
    (*

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    *)
  4. assessment_target_arns : list_parent_arn_list option;
    (*

    A list of ARNs that specifies the assessment targets whose assessment templates you want to list.

    *)
}
type nonrec list_assessment_targets_response = {
  1. next_token : pagination_token option;
    (*

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    *)
  2. assessment_target_arns : list_returned_arn_list;
    (*

    A list of ARNs that specifies the assessment targets that are returned by the action.

    *)
}
type nonrec assessment_target_filter = {
  1. assessment_target_name_pattern : name_pattern option;
    (*

    For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTargetName property of the AssessmentTarget data type.

    *)
}

Used as the request parameter in the ListAssessmentTargets action.

type nonrec list_assessment_targets_request = {
  1. max_results : list_max_results option;
    (*

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    *)
  2. next_token : pagination_token option;
    (*

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentTargets action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    *)
  3. filter : assessment_target_filter option;
    (*

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    *)
}
type nonrec list_assessment_runs_response = {
  1. next_token : pagination_token option;
    (*

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    *)
  2. assessment_run_arns : list_returned_arn_list;
    (*

    A list of ARNs that specifies the assessment runs that are returned by the action.

    *)
}
type nonrec assessment_run_state =
  1. | CANCELED
  2. | COMPLETED_WITH_ERRORS
  3. | COMPLETED
  4. | ERROR
  5. | FAILED
  6. | EVALUATING_RULES
  7. | START_EVALUATING_RULES_PENDING
  8. | DATA_COLLECTED
  9. | STOP_DATA_COLLECTION_PENDING
  10. | COLLECTING_DATA
  11. | START_DATA_COLLECTION_IN_PROGRESS
  12. | START_DATA_COLLECTION_PENDING
  13. | CREATED
type nonrec assessment_run_state_list = assessment_run_state list
type nonrec assessment_run_filter = {
  1. state_change_time_range : timestamp_range option;
    (*

    For a record to match a filter, the value that is specified for this data type property must match the stateChangedAt property of the AssessmentRun data type.

    *)
  2. completion_time_range : timestamp_range option;
    (*

    For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the completedAt property of the AssessmentRun data type.

    *)
  3. start_time_range : timestamp_range option;
    (*

    For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the startTime property of the AssessmentRun data type.

    *)
  4. rules_package_arns : filter_rules_package_arn_list option;
    (*

    For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type.

    *)
  5. duration_range : duration_range option;
    (*

    For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentRun data type.

    *)
  6. states : assessment_run_state_list option;
    (*

    For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.

    *)
  7. name_pattern : name_pattern option;
    (*

    For a record to match a filter, an explicit value or a string containing a wildcard that is specified for this data type property must match the value of the assessmentRunName property of the AssessmentRun data type.

    *)
}

Used as the request parameter in the ListAssessmentRuns action.

type nonrec list_assessment_runs_request = {
  1. max_results : list_max_results option;
    (*

    You can use this parameter to indicate the maximum number of items that you want in the response. The default value is 10. The maximum value is 500.

    *)
  2. next_token : pagination_token option;
    (*

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentRuns action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    *)
  3. filter : assessment_run_filter option;
    (*

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    *)
  4. assessment_template_arns : list_parent_arn_list option;
    (*

    The ARNs that specify the assessment templates whose assessment runs you want to list.

    *)
}
type nonrec agent_health_code =
  1. | UNKNOWN
  2. | THROTTLED
  3. | UNHEALTHY
  4. | SHUTDOWN
  5. | RUNNING
  6. | IDLE
type nonrec assessment_run_agent = {
  1. telemetry_metadata : telemetry_metadata_list;
    (*

    The Amazon Inspector application data metrics that are collected by the agent.

    *)
  2. auto_scaling_group : auto_scaling_group option;
    (*

    The Auto Scaling group of the EC2 instance that is specified by the agent ID.

    *)
  3. agent_health_details : message option;
    (*

    The description for the agent health code.

    *)
  4. agent_health_code : agent_health_code;
    (*

    The detailed health state of the agent.

    *)
  5. agent_health : agent_health;
    (*

    The current health state of the agent.

    *)
  6. assessment_run_arn : arn;
    (*

    The ARN of the assessment run that is associated with the agent.

    *)
  7. agent_id : agent_id;
    (*

    The AWS account of the EC2 instance where the agent is installed.

    *)
}

Contains information about an Amazon Inspector agent. This data type is used as a response element in the ListAssessmentRunAgents action.

type nonrec assessment_run_agent_list = assessment_run_agent list
type nonrec list_assessment_run_agents_response = {
  1. next_token : pagination_token option;
    (*

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    *)
  2. assessment_run_agents : assessment_run_agent_list;
    (*

    A list of ARNs that specifies the agents returned by the action.

    *)
}
type nonrec agent_health_list = agent_health list
type nonrec agent_health_code_list = agent_health_code list
type nonrec agent_filter = {
  1. agent_health_codes : agent_health_code_list;
    (*

    The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.

    *)
  2. agent_healths : agent_health_list;
    (*

    The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.

    *)
}

Contains information about an Amazon Inspector agent. This data type is used as a request parameter in the ListAssessmentRunAgents action.

type nonrec list_assessment_run_agents_request = {
  1. max_results : list_max_results option;
    (*

    You can use this parameter to indicate the maximum number of items that you want in the response. The default value is 10. The maximum value is 500.

    *)
  2. next_token : pagination_token option;
    (*

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentRunAgents action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    *)
  3. filter : agent_filter option;
    (*

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    *)
  4. assessment_run_arn : arn;
    (*

    The ARN that specifies the assessment run whose agents you want to list.

    *)
}
type nonrec ipv4_address_list = ipv4_address list
type nonrec ioc_confidence = int
type nonrec inspector_service_attributes = {
  1. rules_package_arn : arn option;
    (*

    The ARN of the rules package that is used to generate the finding.

    *)
  2. assessment_run_arn : arn option;
    (*

    The ARN of the assessment run during which the finding is generated.

    *)
  3. schema_version : numeric_version;
    (*

    The schema version of this data type.

    *)
}

This data type is used in the Finding data type.

type nonrec get_telemetry_metadata_response = {
  1. telemetry_metadata : telemetry_metadata_list;
    (*

    Telemetry details.

    *)
}
type nonrec get_telemetry_metadata_request = {
  1. assessment_run_arn : arn;
    (*

    The ARN that specifies the assessment run that has the telemetry data that you want to obtain.

    *)
}
type nonrec exclusion_preview = {
  1. attributes : attribute_list option;
    (*

    The system-defined attributes for the exclusion preview.

    *)
  2. scopes : scope_list;
    (*

    The AWS resources for which the exclusion preview pertains.

    *)
  3. recommendation : text;
    (*

    The recommendation for the exclusion preview.

    *)
  4. description : text;
    (*

    The description of the exclusion preview.

    *)
  5. title : text;
    (*

    The name of the exclusion preview.

    *)
}

Contains information about what is excluded from an assessment run given the current state of the assessment template.

type nonrec exclusion_preview_list = exclusion_preview list
type nonrec get_exclusions_preview_response = {
  1. next_token : pagination_token option;
    (*

    When a response is generated, if there is more data to be listed, this parameters is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    *)
  2. exclusion_previews : exclusion_preview_list option;
    (*

    Information about the exclusions included in the preview.

    *)
  3. preview_status : preview_status;
    (*

    Specifies the status of the request to generate an exclusions preview.

    *)
}
type nonrec get_exclusions_preview_request = {
  1. locale : locale option;
    (*

    The locale into which you want to translate the exclusion's title, description, and recommendation.

    *)
  2. max_results : list_max_results option;
    (*

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 100. The maximum value is 500.

    *)
  3. next_token : pagination_token option;
    (*

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the GetExclusionsPreviewRequest action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.

    *)
  4. preview_token : uui_d;
    (*

    The unique identifier associated of the exclusions preview.

    *)
  5. assessment_template_arn : arn;
    (*

    The ARN that specifies the assessment template for which the exclusions preview was requested.

    *)
}
type nonrec assessment_run_in_progress_arn_list = arn list
type nonrec assessment_run_in_progress_exception = {
  1. can_retry : bool_;
    (*

    You can immediately retry your request.

    *)
  2. assessment_run_arns_truncated : bool_;
    (*

    Boolean value that indicates whether the ARN list of the assessment runs is truncated.

    *)
  3. assessment_run_arns : assessment_run_in_progress_arn_list;
    (*

    The ARNs of the assessment runs that are currently in progress.

    *)
  4. message : error_message;
    (*

    Details of the exception error.

    *)
}

You cannot perform a specified action if an assessment run is currently in progress.

type nonrec get_assessment_report_response = {
  1. url : url option;
    (*

    Specifies the URL where you can find the generated assessment report. This parameter is only returned if the report is successfully generated.

    *)
  2. status : report_status;
    (*

    Specifies the status of the request to generate an assessment report.

    *)
}
type nonrec get_assessment_report_request = {
  1. report_type : report_type;
    (*

    Specifies the type of the assessment report that you want to generate. There are two types of assessment reports: a finding report and a full report. For more information, see Assessment Reports.

    *)
  2. report_file_format : report_file_format;
    (*

    Specifies the file format (html or pdf) of the assessment report that you want to generate.

    *)
  3. assessment_run_arn : arn;
    (*

    The ARN that specifies the assessment run for which you want to generate a report.

    *)
}
type nonrec describe_rules_packages_response = {
  1. failed_items : failed_items;
    (*

    Rules package details that cannot be described. An error code is provided for each failed item.

    *)
  2. rules_packages : rules_package_list;
    (*

    Information about the rules package.

    *)
}
type nonrec batch_describe_arn_list = arn list
type nonrec describe_rules_packages_request = {
  1. locale : locale option;
    (*

    The locale that you want to translate a rules package description into.

    *)
  2. rules_package_arns : batch_describe_arn_list;
    (*

    The ARN that specifies the rules package that you want to describe.

    *)
}
type nonrec describe_resource_groups_response = {
  1. failed_items : failed_items;
    (*

    Resource group details that cannot be described. An error code is provided for each failed item.

    *)
  2. resource_groups : resource_group_list;
    (*

    Information about a resource group.

    *)
}
type nonrec describe_resource_groups_request = {
  1. resource_group_arns : batch_describe_arn_list;
    (*

    The ARN that specifies the resource group that you want to describe.

    *)
}
type nonrec asset_type =
  1. | EC2_INSTANCE
type nonrec ami_id = string
type nonrec asset_attributes = {
  1. network_interfaces : network_interfaces option;
    (*

    An array of the network interfaces interacting with the EC2 instance where the finding is generated.

    *)
  2. tags : tags option;
    (*

    The tags related to the EC2 instance where the finding is generated.

    *)
  3. ipv4_addresses : ipv4_address_list option;
    (*

    The list of IP v4 addresses of the EC2 instance where the finding is generated.

    *)
  4. hostname : hostname option;
    (*

    The hostname of the EC2 instance where the finding is generated.

    *)
  5. ami_id : ami_id option;
    (*

    The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.

    *)
  6. auto_scaling_group : auto_scaling_group option;
    (*

    The Auto Scaling group of the EC2 instance where the finding is generated.

    *)
  7. agent_id : agent_id option;
    (*

    The ID of the agent that is installed on the EC2 instance where the finding is generated.

    *)
  8. schema_version : numeric_version;
    (*

    The schema version of this data type.

    *)
}

A collection of attributes of the host from which the finding is generated.

type nonrec finding_id = string
type nonrec finding = {
  1. updated_at : timestamp;
    (*

    The time when AddAttributesToFindings is called.

    *)
  2. created_at : timestamp;
    (*

    The time when the finding was generated.

    *)
  3. user_attributes : user_attribute_list;
    (*

    The user-defined attributes that are assigned to the finding.

    *)
  4. attributes : attribute_list;
    (*

    The system-defined attributes for the finding.

    *)
  5. indicator_of_compromise : bool_ option;
    (*

    This data element is currently not used.

    *)
  6. confidence : ioc_confidence option;
    (*

    This data element is currently not used.

    *)
  7. numeric_severity : numeric_severity option;
    (*

    The numeric value of the finding severity.

    *)
  8. severity : severity option;
    (*

    The finding severity. Values can be set to High, Medium, Low, and Informational.

    *)
  9. recommendation : text option;
    (*

    The recommendation for the finding.

    *)
  10. description : text option;
    (*

    The description of the finding.

    *)
  11. title : text option;
    (*

    The name of the finding.

    *)
  12. id : finding_id option;
    (*

    The ID of the finding.

    *)
  13. asset_attributes : asset_attributes option;
    (*

    A collection of attributes of the host from which the finding is generated.

    *)
  14. asset_type : asset_type option;
    (*

    The type of the host from which the finding is generated.

    *)
  15. service_attributes : inspector_service_attributes option;
    (*

    This data type is used in the Finding data type.

    *)
  16. service : service_name option;
    (*

    The data element is set to "Inspector".

    *)
  17. schema_version : numeric_version option;
    (*

    The schema version of this data type.

    *)
  18. arn : arn;
    (*

    The ARN that specifies the finding.

    *)
}

Contains information about an Amazon Inspector finding. This data type is used as the response element in the DescribeFindings action.

type nonrec finding_list = finding list
type nonrec describe_findings_response = {
  1. failed_items : failed_items;
    (*

    Finding details that cannot be described. An error code is provided for each failed item.

    *)
  2. findings : finding_list;
    (*

    Information about the finding.

    *)
}
type nonrec describe_findings_request = {
  1. locale : locale option;
    (*

    The locale into which you want to translate a finding description, recommendation, and the short description that identifies the finding.

    *)
  2. finding_arns : batch_describe_arn_list;
    (*

    The ARN that specifies the finding that you want to describe.

    *)
}
type nonrec exclusion = {
  1. attributes : attribute_list option;
    (*

    The system-defined attributes for the exclusion.

    *)
  2. scopes : scope_list;
    (*

    The AWS resources for which the exclusion pertains.

    *)
  3. recommendation : text;
    (*

    The recommendation for the exclusion.

    *)
  4. description : text;
    (*

    The description of the exclusion.

    *)
  5. title : text;
    (*

    The name of the exclusion.

    *)
  6. arn : arn;
    (*

    The ARN that specifies the exclusion.

    *)
}

Contains information about what was excluded from an assessment run.

type nonrec exclusion_map = (arn * exclusion) list
type nonrec describe_exclusions_response = {
  1. failed_items : failed_items;
    (*

    Exclusion details that cannot be described. An error code is provided for each failed item.

    *)
  2. exclusions : exclusion_map;
    (*

    Information about the exclusions.

    *)
}
type nonrec batch_describe_exclusions_arn_list = arn list
type nonrec describe_exclusions_request = {
  1. locale : locale option;
    (*

    The locale into which you want to translate the exclusion's title, description, and recommendation.

    *)
  2. exclusion_arns : batch_describe_exclusions_arn_list;
    (*

    The list of ARNs that specify the exclusions that you want to describe.

    *)
}
type nonrec describe_cross_account_access_role_response = {
  1. registered_at : timestamp;
    (*

    The date when the cross-account access role was registered.

    *)
  2. valid : bool_;
    (*

    A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.

    *)
  3. role_arn : arn;
    (*

    The ARN that specifies the IAM role that Amazon Inspector uses to access your AWS account.

    *)
}
type nonrec assessment_template_name = string
type nonrec assessment_template_rules_package_arn_list = arn list
type nonrec arn_count = int
type nonrec assessment_template = {
  1. created_at : timestamp;
    (*

    The time at which the assessment template is created.

    *)
  2. assessment_run_count : arn_count;
    (*

    The number of existing assessment runs associated with this assessment template. This value can be zero or a positive integer.

    *)
  3. last_assessment_run_arn : arn option;
    (*

    The Amazon Resource Name (ARN) of the most recent assessment run associated with this assessment template. This value exists only when the value of assessmentRunCount is greaterpa than zero.

    *)
  4. user_attributes_for_findings : user_attribute_list;
    (*

    The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.

    *)
  5. rules_package_arns : assessment_template_rules_package_arn_list;
    (*

    The rules packages that are specified for this assessment template.

    *)
  6. duration_in_seconds : assessment_run_duration;
    (*

    The duration in seconds specified for this assessment template. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).

    *)
  7. assessment_target_arn : arn;
    (*

    The ARN of the assessment target that corresponds to this assessment template.

    *)
  8. name : assessment_template_name;
    (*

    The name of the assessment template.

    *)
  9. arn : arn;
    (*

    The ARN of the assessment template.

    *)
}

Contains information about an Amazon Inspector assessment template. This data type is used as the response element in the DescribeAssessmentTemplates action.

type nonrec assessment_template_list = assessment_template list
type nonrec describe_assessment_templates_response = {
  1. failed_items : failed_items;
    (*

    Assessment template details that cannot be described. An error code is provided for each failed item.

    *)
  2. assessment_templates : assessment_template_list;
    (*

    Information about the assessment templates.

    *)
}
type nonrec describe_assessment_templates_request = {
  1. assessment_template_arns : batch_describe_arn_list;
}
type nonrec assessment_target = {
  1. updated_at : timestamp;
    (*

    The time at which UpdateAssessmentTarget is called.

    *)
  2. created_at : timestamp;
    (*

    The time at which the assessment target is created.

    *)
  3. resource_group_arn : arn option;
    (*

    The ARN that specifies the resource group that is associated with the assessment target.

    *)
  4. name : assessment_target_name;
    (*

    The name of the Amazon Inspector assessment target.

    *)
  5. arn : arn;
    (*

    The ARN that specifies the Amazon Inspector assessment target.

    *)
}

Contains information about an Amazon Inspector application. This data type is used as the response element in the DescribeAssessmentTargets action.

type nonrec assessment_target_list = assessment_target list
type nonrec describe_assessment_targets_response = {
  1. failed_items : failed_items;
    (*

    Assessment target details that cannot be described. An error code is provided for each failed item.

    *)
  2. assessment_targets : assessment_target_list;
    (*

    Information about the assessment targets.

    *)
}
type nonrec describe_assessment_targets_request = {
  1. assessment_target_arns : batch_describe_arn_list;
    (*

    The ARNs that specifies the assessment targets that you want to describe.

    *)
}
type nonrec assessment_rules_package_arn_list = arn list
type nonrec assessment_run_state_change = {
  1. state : assessment_run_state;
    (*

    The assessment run state.

    *)
  2. state_changed_at : timestamp;
    (*

    The last time the assessment run state changed.

    *)
}

Used as one of the elements of the AssessmentRun data type.

type nonrec assessment_run_state_change_list = assessment_run_state_change list
type nonrec assessment_run_notification_sns_status_code =
  1. | INTERNAL_ERROR
  2. | ACCESS_DENIED
  3. | TOPIC_DOES_NOT_EXIST
  4. | SUCCESS
type nonrec assessment_run_notification = {
  1. sns_publish_status_code : assessment_run_notification_sns_status_code option;
    (*

    The status code of the SNS notification.

    *)
  2. sns_topic_arn : arn option;
    (*

    The SNS topic to which the SNS notification is sent.

    *)
  3. error : bool_;
    (*

    The Boolean value that specifies whether the notification represents an error.

    *)
  4. message : message option;
    (*

    The message included in the notification.

    *)
  5. event : inspector_event;
    (*

    The event for which a notification is sent.

    *)
  6. date : timestamp;
    (*

    The date of the notification.

    *)
}

Used as one of the elements of the AssessmentRun data type.

type nonrec assessment_run_notification_list = assessment_run_notification list
type nonrec finding_count = int
type nonrec assessment_run_finding_counts = (severity * finding_count) list
type nonrec assessment_run = {
  1. finding_counts : assessment_run_finding_counts;
    (*

    Provides a total count of generated findings per severity.

    *)
  2. notifications : assessment_run_notification_list;
    (*

    A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.

    *)
  3. state_changes : assessment_run_state_change_list;
    (*

    A list of the assessment run state changes.

    *)
  4. data_collected : bool_;
    (*

    A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.

    *)
  5. state_changed_at : timestamp;
    (*

    The last time when the assessment run's state changed.

    *)
  6. completed_at : timestamp option;
    (*

    The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.

    *)
  7. started_at : timestamp option;
    (*

    The time when StartAssessmentRun was called.

    *)
  8. created_at : timestamp;
    (*

    The time when StartAssessmentRun was called.

    *)
  9. user_attributes_for_findings : user_attribute_list;
    (*

    The user-defined attributes that are assigned to every generated finding.

    *)
  10. rules_package_arns : assessment_rules_package_arn_list;
    (*

    The rules packages selected for the assessment run.

    *)
  11. duration_in_seconds : assessment_run_duration;
    (*

    The duration of the assessment run.

    *)
  12. state : assessment_run_state;
    (*

    The state of the assessment run.

    *)
  13. assessment_template_arn : arn;
    (*

    The ARN of the assessment template that is associated with the assessment run.

    *)
  14. name : assessment_run_name;
    (*

    The auto-generated name for the assessment run.

    *)
  15. arn : arn;
    (*

    The ARN of the assessment run.

    *)
}

A snapshot of an Amazon Inspector assessment run that contains the findings of the assessment run .

Used as the response element in the DescribeAssessmentRuns action.

type nonrec assessment_run_list = assessment_run list
type nonrec describe_assessment_runs_response = {
  1. failed_items : failed_items;
    (*

    Assessment run details that cannot be described. An error code is provided for each failed item.

    *)
  2. assessment_runs : assessment_run_list;
    (*

    Information about the assessment run.

    *)
}
type nonrec describe_assessment_runs_request = {
  1. assessment_run_arns : batch_describe_arn_list;
    (*

    The ARN that specifies the assessment run that you want to describe.

    *)
}
type nonrec delete_assessment_template_request = {
  1. assessment_template_arn : arn;
    (*

    The ARN that specifies the assessment template that you want to delete.

    *)
}
type nonrec delete_assessment_target_request = {
  1. assessment_target_arn : arn;
    (*

    The ARN that specifies the assessment target that you want to delete.

    *)
}
type nonrec delete_assessment_run_request = {
  1. assessment_run_arn : arn;
    (*

    The ARN that specifies the assessment run that you want to delete.

    *)
}
type nonrec create_resource_group_response = {
  1. resource_group_arn : arn;
    (*

    The ARN that specifies the resource group that is created.

    *)
}
type nonrec create_resource_group_request = {
  1. resource_group_tags : resource_group_tags;
    (*

    A collection of keys and an array of possible values, '[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'.

    For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.

    *)
}
type nonrec create_exclusions_preview_response = {
  1. preview_token : uui_d;
    (*

    Specifies the unique identifier of the requested exclusions preview. You can use the unique identifier to retrieve the exclusions preview when running the GetExclusionsPreview API.

    *)
}
type nonrec create_exclusions_preview_request = {
  1. assessment_template_arn : arn;
    (*

    The ARN that specifies the assessment template for which you want to create an exclusions preview.

    *)
}
type nonrec create_assessment_template_response = {
  1. assessment_template_arn : arn;
    (*

    The ARN that specifies the assessment template that is created.

    *)
}
type nonrec create_assessment_template_request = {
  1. user_attributes_for_findings : user_attribute_list option;
    (*

    The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. An attribute is a key and value pair (an Attribute object). Within an assessment template, each key must be unique.

    *)
  2. rules_package_arns : assessment_template_rules_package_arn_list;
    (*

    The ARNs that specify the rules packages that you want to attach to the assessment template.

    *)
  3. duration_in_seconds : assessment_run_duration;
    (*

    The duration of the assessment run in seconds.

    *)
  4. assessment_template_name : assessment_template_name;
    (*

    The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.

    *)
  5. assessment_target_arn : arn;
    (*

    The ARN that specifies the assessment target for which you want to create the assessment template.

    *)
}
type nonrec create_assessment_target_response = {
  1. assessment_target_arn : arn;
    (*

    The ARN that specifies the assessment target that is created.

    *)
}
type nonrec create_assessment_target_request = {
  1. resource_group_arn : arn option;
    (*

    The ARN that specifies the resource group that is used to create the assessment target. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.

    *)
  2. assessment_target_name : assessment_target_name;
    (*

    The user-defined name that identifies the assessment target that you want to create. The name must be unique within the AWS account.

    *)
}
type nonrec add_attributes_to_findings_response = {
  1. failed_items : failed_items;
    (*

    Attribute details that cannot be described. An error code is provided for each failed item.

    *)
}
type nonrec add_attributes_to_findings_request = {
  1. attributes : user_attribute_list;
    (*

    The array of attributes that you want to assign to specified findings.

    *)
  2. finding_arns : add_remove_attributes_finding_arn_list;
    (*

    The ARNs that specify the findings that you want to assign attributes to.

    *)
}