lib/aws-sdk-guardduty/client.rb in aws-sdk-guardduty-1.68.0 vs lib/aws-sdk-guardduty/client.rb in aws-sdk-guardduty-1.69.0

- old
+ new

@@ -1340,11 +1340,11 @@ # next_token: "String", # max_results: 1, # filter_criteria: { # filter_criterion: [ # { - # criterion_key: "EC2_INSTANCE_ARN", # accepts EC2_INSTANCE_ARN, SCAN_ID, ACCOUNT_ID, GUARDDUTY_FINDING_ID, SCAN_START_TIME, SCAN_STATUS + # criterion_key: "EC2_INSTANCE_ARN", # accepts EC2_INSTANCE_ARN, SCAN_ID, ACCOUNT_ID, GUARDDUTY_FINDING_ID, SCAN_START_TIME, SCAN_STATUS, SCAN_TYPE # filter_condition: { # equals_value: "NonEmptyString", # greater_than: 1, # less_than: 1, # }, @@ -1361,11 +1361,11 @@ # # resp.scans #=> Array # resp.scans[0].detector_id #=> String # resp.scans[0].admin_detector_id #=> String # resp.scans[0].scan_id #=> String - # resp.scans[0].scan_status #=> String, one of "RUNNING", "COMPLETED", "FAILED" + # resp.scans[0].scan_status #=> String, one of "RUNNING", "COMPLETED", "FAILED", "SKIPPED" # resp.scans[0].failure_reason #=> String # resp.scans[0].scan_start_time #=> Time # resp.scans[0].scan_end_time #=> Time # resp.scans[0].trigger_details.guard_duty_finding_id #=> String # resp.scans[0].trigger_details.description #=> String @@ -1380,10 +1380,11 @@ # resp.scans[0].attached_volumes[0].device_name #=> String # resp.scans[0].attached_volumes[0].volume_size_in_gb #=> Integer # resp.scans[0].attached_volumes[0].encryption_type #=> String # resp.scans[0].attached_volumes[0].snapshot_arn #=> String # resp.scans[0].attached_volumes[0].kms_key_arn #=> String + # resp.scans[0].scan_type #=> String, one of "GUARDDUTY_INITIATED", "ON_DEMAND" # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DescribeMalwareScans AWS API Documentation # # @overload describe_malware_scans(params = {}) @@ -2202,10 +2203,11 @@ # resp.findings[0].service.ebs_volume_scan_details.scan_detections.threat_detected_by_name.threat_names[0].file_paths #=> Array # resp.findings[0].service.ebs_volume_scan_details.scan_detections.threat_detected_by_name.threat_names[0].file_paths[0].file_path #=> String # resp.findings[0].service.ebs_volume_scan_details.scan_detections.threat_detected_by_name.threat_names[0].file_paths[0].volume_arn #=> String # resp.findings[0].service.ebs_volume_scan_details.scan_detections.threat_detected_by_name.threat_names[0].file_paths[0].hash #=> String # resp.findings[0].service.ebs_volume_scan_details.scan_detections.threat_detected_by_name.threat_names[0].file_paths[0].file_name #=> String + # resp.findings[0].service.ebs_volume_scan_details.scan_type #=> String, one of "GUARDDUTY_INITIATED", "ON_DEMAND" # resp.findings[0].service.runtime_details.process.name #=> String # resp.findings[0].service.runtime_details.process.executable_path #=> String # resp.findings[0].service.runtime_details.process.executable_sha_256 #=> String # resp.findings[0].service.runtime_details.process.namespace_pid #=> Integer # resp.findings[0].service.runtime_details.process.pwd #=> String @@ -3531,10 +3533,44 @@ def list_threat_intel_sets(params = {}, options = {}) req = build_request(:list_threat_intel_sets, params) req.send_request(options) end + # Initiates the malware scan. Invoking this API will automatically + # create the [Service-linked role ][1] in the corresponding account. + # + # + # + # [1]: https://docs.aws.amazon.com/guardduty/latest/ug/slr-permissions-malware-protection.html + # + # @option params [required, String] :resource_arn + # Amazon Resource Name (ARN) of the resource for which you invoked the + # API. + # + # @return [Types::StartMalwareScanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::StartMalwareScanResponse#scan_id #scan_id} => String + # + # @example Request syntax with placeholder values + # + # resp = client.start_malware_scan({ + # resource_arn: "ResourceArn", # required + # }) + # + # @example Response structure + # + # resp.scan_id #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/StartMalwareScan AWS API Documentation + # + # @overload start_malware_scan(params = {}) + # @param [Hash] params ({}) + def start_malware_scan(params = {}, options = {}) + req = build_request(:start_malware_scan, params) + req.send_request(options) + end + # Turns on GuardDuty monitoring of the specified member accounts. Use # this operation to restart monitoring of accounts that you stopped # monitoring with the [StopMonitoringMembers][1] operation. # # @@ -4249,10 +4285,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-guardduty' - context[:gem_version] = '1.68.0' + context[:gem_version] = '1.69.0' Seahorse::Client::Request.new(handlers, context) end # @api private # @deprecated