aws-sdk-guardduty 1.158.0 → 1.160.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2874415f97ca671121b11e842e70262a29d5a3097ecfab0026db36bf91bcfff
4
- data.tar.gz: 54aaf687759db93ee24391bf58b57a930129d5f61517ce4e5bb5cd2da0f2b8c7
3
+ metadata.gz: 90c6a97a0222bacba62b12bd9bd7f1b3634d91b1bcbbda69499bec31dcd1bfad
4
+ data.tar.gz: bcfb93f12f48224a150d06bd7e4b1d27c3ead876a7d4b12dbcf872ec12dd17b1
5
5
  SHA512:
6
- metadata.gz: 7db3fa4d4d89964f7f7eb6e146be73f330e02b32a4e229c488de2b445862bd76302d0509588724c7a137eebb77e2fa6ff05e1eef6256f29a9249010b57923e01
7
- data.tar.gz: 1038c6949fce6c1fe7cbecc45c00df3230b946d0ce3da64b484977822aa3fd447b2bdf4e68514a9b030a3836ceb9ee7f966be703fb879fc96ea54a0df361fe9b
6
+ metadata.gz: 67ce5b188116c974f276aa51a8aee732af5650c0117ca9a53c54a0bf2a52951c15b708c327d5b3e768ed7b2166bb2b4a2aac5f5bfe918d433d81f556b6bfd491
7
+ data.tar.gz: 2652fb7adc23e13d66fea36aa1be409a3e2c6c2a0ada7405dd2d7783b232f8a1ade8b3d4aeadcd2ffb9b5dd9dfc8448867a6dedf943463239d10de9a86b441e8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.160.0 (2026-09-03)
5
+ ------------------
6
+
7
+ * Feature - Adding support for Sequence Activities in GuardDuty Findings
8
+
9
+ 1.159.0 (2026-09-01)
10
+ ------------------
11
+
12
+ * Feature - Amazon GuardDuty now supports custom detection rules, including APIs to manage rule associations and organization-level configurations.
13
+
4
14
  1.158.0 (2026-07-22)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.158.0
1
+ 1.160.0
@@ -587,6 +587,108 @@ module Aws::GuardDuty
587
587
  req.send_request(options)
588
588
  end
589
589
 
590
+ # Enables a custom detection rule for your account by creating an
591
+ # association. You specify the rule and the mode in which it operates.
592
+ #
593
+ # @option params [required, String] :rule_id
594
+ # The unique identifier for the custom detection rule.
595
+ #
596
+ # @option params [required, String] :mode
597
+ # The rule execution mode. Valid values: `LIVE` \| `DRY_RUN`.
598
+ #
599
+ # @option params [String] :client_token
600
+ # A unique, case-sensitive identifier to ensure that the operation
601
+ # completes no more than one time. Maximum 64 characters.
602
+ #
603
+ # **A suitable default value is auto-generated.** You should normally
604
+ # not need to pass this option.**
605
+ #
606
+ # @option params [Hash<String,String>] :tags
607
+ # The tags to be added to the new custom detection rule association
608
+ # resource.
609
+ #
610
+ # @return [Types::CreateCustomDetectionRuleAssociationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
611
+ #
612
+ # * {Types::CreateCustomDetectionRuleAssociationResponse#rule_association #rule_association} => Types::AssociationDetail
613
+ #
614
+ # @example Request syntax with placeholder values
615
+ #
616
+ # resp = client.create_custom_detection_rule_association({
617
+ # rule_id: "RuleId", # required
618
+ # mode: "LIVE", # required, accepts LIVE, DRY_RUN
619
+ # client_token: "ClientToken",
620
+ # tags: {
621
+ # "TagKey" => "TagValue",
622
+ # },
623
+ # })
624
+ #
625
+ # @example Response structure
626
+ #
627
+ # resp.rule_association.association_id #=> String
628
+ # resp.rule_association.arn #=> String
629
+ # resp.rule_association.rule_id #=> String
630
+ # resp.rule_association.account_id #=> String
631
+ # resp.rule_association.mode #=> String, one of "LIVE", "DRY_RUN"
632
+ # resp.rule_association.created_at #=> Time
633
+ # resp.rule_association.updated_at #=> Time
634
+ # resp.rule_association.expires_at #=> Time
635
+ #
636
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateCustomDetectionRuleAssociation AWS API Documentation
637
+ #
638
+ # @overload create_custom_detection_rule_association(params = {})
639
+ # @param [Hash] params ({})
640
+ def create_custom_detection_rule_association(params = {}, options = {})
641
+ req = build_request(:create_custom_detection_rule_association, params)
642
+ req.send_request(options)
643
+ end
644
+
645
+ # Creates an organization-level configuration that enables a custom
646
+ # detection rule across your organization. This operation is available
647
+ # only to the delegated administrator account.
648
+ #
649
+ # @option params [required, String] :rule_id
650
+ # The unique identifier for the custom detection rule.
651
+ #
652
+ # @option params [required, String] :mode
653
+ # The execution mode of the organization configuration. Valid values:
654
+ # `LIVE` \| `DRY_RUN`.
655
+ #
656
+ # @option params [Array<String>] :include_account_ids
657
+ # The account IDs to include in the organization configuration. Mutually
658
+ # exclusive with `ExcludeAccountIds`.
659
+ #
660
+ # @option params [Array<String>] :exclude_account_ids
661
+ # The account IDs to exclude from the organization configuration.
662
+ # Mutually exclusive with `IncludeAccountIds`.
663
+ #
664
+ # @option params [String] :client_token
665
+ # A unique, case-sensitive identifier to ensure that the operation
666
+ # completes no more than one time.
667
+ #
668
+ # **A suitable default value is auto-generated.** You should normally
669
+ # not need to pass this option.**
670
+ #
671
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
672
+ #
673
+ # @example Request syntax with placeholder values
674
+ #
675
+ # resp = client.create_custom_detection_rule_org_configuration({
676
+ # rule_id: "RuleId", # required
677
+ # mode: "LIVE", # required, accepts LIVE, DRY_RUN
678
+ # include_account_ids: ["AccountId"],
679
+ # exclude_account_ids: ["AccountId"],
680
+ # client_token: "ClientToken",
681
+ # })
682
+ #
683
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateCustomDetectionRuleOrgConfiguration AWS API Documentation
684
+ #
685
+ # @overload create_custom_detection_rule_org_configuration(params = {})
686
+ # @param [Hash] params ({})
687
+ def create_custom_detection_rule_org_configuration(params = {}, options = {})
688
+ req = build_request(:create_custom_detection_rule_org_configuration, params)
689
+ req.send_request(options)
690
+ end
691
+
590
692
  # Creates a single GuardDuty detector. A detector is a resource that
591
693
  # represents the GuardDuty service. To start using GuardDuty, you must
592
694
  # create a detector in each Region where you enable the service. You can
@@ -2835,6 +2937,62 @@ module Aws::GuardDuty
2835
2937
  req.send_request(options)
2836
2938
  end
2837
2939
 
2940
+ # Disables a custom detection rule by deleting its association. This
2941
+ # operation is idempotent.
2942
+ #
2943
+ # @option params [required, String] :rule_id
2944
+ # The unique identifier for the custom detection rule.
2945
+ #
2946
+ # @option params [required, String] :association_id
2947
+ # The unique identifier for the association to delete.
2948
+ #
2949
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2950
+ #
2951
+ # @example Request syntax with placeholder values
2952
+ #
2953
+ # resp = client.delete_custom_detection_rule_association({
2954
+ # rule_id: "RuleId", # required
2955
+ # association_id: "AssociationId", # required
2956
+ # })
2957
+ #
2958
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteCustomDetectionRuleAssociation AWS API Documentation
2959
+ #
2960
+ # @overload delete_custom_detection_rule_association(params = {})
2961
+ # @param [Hash] params ({})
2962
+ def delete_custom_detection_rule_association(params = {}, options = {})
2963
+ req = build_request(:delete_custom_detection_rule_association, params)
2964
+ req.send_request(options)
2965
+ end
2966
+
2967
+ # Deletes the organization-level configuration for a custom detection
2968
+ # rule. This operation is available only to the delegated administrator
2969
+ # account.
2970
+ #
2971
+ # @option params [required, String] :rule_id
2972
+ # The unique identifier for the custom detection rule.
2973
+ #
2974
+ # @option params [required, String] :mode
2975
+ # The execution mode of the organization configuration to delete. Valid
2976
+ # values: `LIVE` \| `DRY_RUN`.
2977
+ #
2978
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2979
+ #
2980
+ # @example Request syntax with placeholder values
2981
+ #
2982
+ # resp = client.delete_custom_detection_rule_org_configuration({
2983
+ # rule_id: "RuleId", # required
2984
+ # mode: "LIVE", # required, accepts LIVE, DRY_RUN
2985
+ # })
2986
+ #
2987
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteCustomDetectionRuleOrgConfiguration AWS API Documentation
2988
+ #
2989
+ # @overload delete_custom_detection_rule_org_configuration(params = {})
2990
+ # @param [Hash] params ({})
2991
+ def delete_custom_detection_rule_org_configuration(params = {}, options = {})
2992
+ req = build_request(:delete_custom_detection_rule_org_configuration, params)
2993
+ req.send_request(options)
2994
+ end
2995
+
2838
2996
  # Deletes an Amazon GuardDuty detector that is specified by the detector
2839
2997
  # ID.
2840
2998
  #
@@ -3729,6 +3887,134 @@ module Aws::GuardDuty
3729
3887
  req.send_request(options)
3730
3888
  end
3731
3889
 
3890
+ # Returns details for a custom detection rule in GuardDuty, including
3891
+ # its detection logic.
3892
+ #
3893
+ # @option params [required, String] :rule_id
3894
+ # The unique identifier for the custom detection rule.
3895
+ #
3896
+ # @return [Types::GetCustomDetectionRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3897
+ #
3898
+ # * {Types::GetCustomDetectionRuleResponse#rule #rule} => Types::RuleDetail
3899
+ #
3900
+ # @example Request syntax with placeholder values
3901
+ #
3902
+ # resp = client.get_custom_detection_rule({
3903
+ # rule_id: "RuleId", # required
3904
+ # })
3905
+ #
3906
+ # @example Response structure
3907
+ #
3908
+ # resp.rule.rule_id #=> String
3909
+ # resp.rule.arn #=> String
3910
+ # resp.rule.name #=> String
3911
+ # resp.rule.description #=> String
3912
+ # resp.rule.severity #=> String, one of "CRITICAL", "HIGH", "MEDIUM", "LOW"
3913
+ # resp.rule.data_source #=> String, one of "CloudTrailManagementEvent"
3914
+ # resp.rule.tactic #=> String
3915
+ # resp.rule.technique #=> String
3916
+ # resp.rule.service #=> String
3917
+ # resp.rule.definition.expression #=> String
3918
+ # resp.rule.language #=> String, one of "SQL"
3919
+ # resp.rule.schema #=> String, one of "CloudTrail"
3920
+ # resp.rule.created_at #=> Time
3921
+ # resp.rule.updated_at #=> Time
3922
+ #
3923
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetCustomDetectionRule AWS API Documentation
3924
+ #
3925
+ # @overload get_custom_detection_rule(params = {})
3926
+ # @param [Hash] params ({})
3927
+ def get_custom_detection_rule(params = {}, options = {})
3928
+ req = build_request(:get_custom_detection_rule, params)
3929
+ req.send_request(options)
3930
+ end
3931
+
3932
+ # Returns details for a custom detection rule association.
3933
+ #
3934
+ # @option params [required, String] :rule_id
3935
+ # The unique identifier for the custom detection rule.
3936
+ #
3937
+ # @option params [required, String] :association_id
3938
+ # The unique identifier for the association.
3939
+ #
3940
+ # @return [Types::GetCustomDetectionRuleAssociationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3941
+ #
3942
+ # * {Types::GetCustomDetectionRuleAssociationResponse#rule_association #rule_association} => Types::AssociationDetail
3943
+ # * {Types::GetCustomDetectionRuleAssociationResponse#tags #tags} => Hash&lt;String,String&gt;
3944
+ #
3945
+ # @example Request syntax with placeholder values
3946
+ #
3947
+ # resp = client.get_custom_detection_rule_association({
3948
+ # rule_id: "RuleId", # required
3949
+ # association_id: "AssociationId", # required
3950
+ # })
3951
+ #
3952
+ # @example Response structure
3953
+ #
3954
+ # resp.rule_association.association_id #=> String
3955
+ # resp.rule_association.arn #=> String
3956
+ # resp.rule_association.rule_id #=> String
3957
+ # resp.rule_association.account_id #=> String
3958
+ # resp.rule_association.mode #=> String, one of "LIVE", "DRY_RUN"
3959
+ # resp.rule_association.created_at #=> Time
3960
+ # resp.rule_association.updated_at #=> Time
3961
+ # resp.rule_association.expires_at #=> Time
3962
+ # resp.tags #=> Hash
3963
+ # resp.tags["TagKey"] #=> String
3964
+ #
3965
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetCustomDetectionRuleAssociation AWS API Documentation
3966
+ #
3967
+ # @overload get_custom_detection_rule_association(params = {})
3968
+ # @param [Hash] params ({})
3969
+ def get_custom_detection_rule_association(params = {}, options = {})
3970
+ req = build_request(:get_custom_detection_rule_association, params)
3971
+ req.send_request(options)
3972
+ end
3973
+
3974
+ # Returns the organization-level configuration for a custom detection
3975
+ # rule.
3976
+ #
3977
+ # @option params [required, String] :rule_id
3978
+ # The unique identifier for the custom detection rule.
3979
+ #
3980
+ # @option params [required, String] :mode
3981
+ # The execution mode of the organization configuration to retrieve.
3982
+ # Valid values: `LIVE` \| `DRY_RUN`.
3983
+ #
3984
+ # @return [Types::GetCustomDetectionRuleOrgConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3985
+ #
3986
+ # * {Types::GetCustomDetectionRuleOrgConfigurationResponse#configuration #configuration} => Types::DetectionRuleOrgConfiguration
3987
+ #
3988
+ # @example Request syntax with placeholder values
3989
+ #
3990
+ # resp = client.get_custom_detection_rule_org_configuration({
3991
+ # rule_id: "RuleId", # required
3992
+ # mode: "LIVE", # required, accepts LIVE, DRY_RUN
3993
+ # })
3994
+ #
3995
+ # @example Response structure
3996
+ #
3997
+ # resp.configuration.rule_id #=> String
3998
+ # resp.configuration.mode #=> String, one of "LIVE", "DRY_RUN"
3999
+ # resp.configuration.status #=> String, one of "ACTIVE", "PROCESSING", "FAILED"
4000
+ # resp.configuration.status_reason #=> String
4001
+ # resp.configuration.include_account_ids #=> Array
4002
+ # resp.configuration.include_account_ids[0] #=> String
4003
+ # resp.configuration.exclude_account_ids #=> Array
4004
+ # resp.configuration.exclude_account_ids[0] #=> String
4005
+ # resp.configuration.created_at #=> Time
4006
+ # resp.configuration.updated_at #=> Time
4007
+ # resp.configuration.expires_at #=> Time
4008
+ #
4009
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetCustomDetectionRuleOrgConfiguration AWS API Documentation
4010
+ #
4011
+ # @overload get_custom_detection_rule_org_configuration(params = {})
4012
+ # @param [Hash] params ({})
4013
+ def get_custom_detection_rule_org_configuration(params = {}, options = {})
4014
+ req = build_request(:get_custom_detection_rule_org_configuration, params)
4015
+ req.send_request(options)
4016
+ end
4017
+
3732
4018
  # Retrieves a GuardDuty detector specified by the detectorId.
3733
4019
  #
3734
4020
  # There might be regional differences because some data sources might
@@ -4560,6 +4846,12 @@ module Aws::GuardDuty
4560
4846
  # resp.findings[0].service.detection.sequence.signals[0].signal_indicators[0].values #=> Array
4561
4847
  # resp.findings[0].service.detection.sequence.signals[0].signal_indicators[0].values[0] #=> String
4562
4848
  # resp.findings[0].service.detection.sequence.signals[0].signal_indicators[0].title #=> String
4849
+ # resp.findings[0].service.detection.sequence.signals[0].activities #=> Array
4850
+ # resp.findings[0].service.detection.sequence.signals[0].activities[0].type #=> String, one of "API_CALL"
4851
+ # resp.findings[0].service.detection.sequence.signals[0].activities[0].api.operation #=> String
4852
+ # resp.findings[0].service.detection.sequence.signals[0].activities[0].api.service #=> String
4853
+ # resp.findings[0].service.detection.sequence.signals[0].activities[0].api.error #=> String
4854
+ # resp.findings[0].service.detection.sequence.signals[0].activities[0].api.user_agent #=> String
4563
4855
  # resp.findings[0].service.detection.sequence.sequence_indicators #=> Array
4564
4856
  # resp.findings[0].service.detection.sequence.sequence_indicators[0].key #=> String, one of "SUSPICIOUS_USER_AGENT", "SUSPICIOUS_NETWORK", "MALICIOUS_IP", "TOR_IP", "ATTACK_TACTIC", "HIGH_RISK_API", "ATTACK_TECHNIQUE", "UNUSUAL_API_FOR_ACCOUNT", "UNUSUAL_ASN_FOR_ACCOUNT", "UNUSUAL_ASN_FOR_USER", "SUSPICIOUS_PROCESS", "MALICIOUS_DOMAIN", "MALICIOUS_PROCESS", "CRYPTOMINING_IP", "CRYPTOMINING_DOMAIN", "CRYPTOMINING_PROCESS", "MALICIOUS_FILE", "VULNERABILITY", "MALICIOUS_PACKAGE", "MISCONFIGURATION", "REACHABILITY", "SENSITIVE_DATA"
4565
4857
  # resp.findings[0].service.detection.sequence.sequence_indicators[0].values #=> Array
@@ -5786,6 +6078,175 @@ module Aws::GuardDuty
5786
6078
  req.send_request(options)
5787
6079
  end
5788
6080
 
6081
+ # Returns all custom detection rule associations for your account. You
6082
+ # can filter by rule ID and mode.
6083
+ #
6084
+ # @option params [Integer] :max_results
6085
+ # The maximum number of results to return in a single page. Minimum
6086
+ # value of 1, maximum value of 100.
6087
+ #
6088
+ # @option params [String] :next_token
6089
+ # A pagination token from a previous response. Use this token to
6090
+ # retrieve the next page of results.
6091
+ #
6092
+ # @option params [String] :rule_id
6093
+ # The unique identifier for the custom detection rule to filter
6094
+ # associations by.
6095
+ #
6096
+ # @option params [String] :mode
6097
+ # The rule execution mode to filter associations by.
6098
+ #
6099
+ # @return [Types::ListCustomDetectionRuleAssociationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6100
+ #
6101
+ # * {Types::ListCustomDetectionRuleAssociationsResponse#rule_associations #rule_associations} => Array&lt;Types::AssociationSummary&gt;
6102
+ # * {Types::ListCustomDetectionRuleAssociationsResponse#next_token #next_token} => String
6103
+ #
6104
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6105
+ #
6106
+ # @example Request syntax with placeholder values
6107
+ #
6108
+ # resp = client.list_custom_detection_rule_associations({
6109
+ # max_results: 1,
6110
+ # next_token: "String",
6111
+ # rule_id: "RuleId",
6112
+ # mode: "LIVE", # accepts LIVE, DRY_RUN
6113
+ # })
6114
+ #
6115
+ # @example Response structure
6116
+ #
6117
+ # resp.rule_associations #=> Array
6118
+ # resp.rule_associations[0].association_id #=> String
6119
+ # resp.rule_associations[0].arn #=> String
6120
+ # resp.rule_associations[0].rule_id #=> String
6121
+ # resp.rule_associations[0].mode #=> String, one of "LIVE", "DRY_RUN"
6122
+ # resp.rule_associations[0].created_at #=> Time
6123
+ # resp.rule_associations[0].updated_at #=> Time
6124
+ # resp.rule_associations[0].expires_at #=> Time
6125
+ # resp.next_token #=> String
6126
+ #
6127
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListCustomDetectionRuleAssociations AWS API Documentation
6128
+ #
6129
+ # @overload list_custom_detection_rule_associations(params = {})
6130
+ # @param [Hash] params ({})
6131
+ def list_custom_detection_rule_associations(params = {}, options = {})
6132
+ req = build_request(:list_custom_detection_rule_associations, params)
6133
+ req.send_request(options)
6134
+ end
6135
+
6136
+ # Returns all organization-level configurations for custom detection
6137
+ # rules. You can filter the results by status.
6138
+ #
6139
+ # @option params [Integer] :max_results
6140
+ # The maximum number of results to return in a single page. Minimum
6141
+ # value of 1, maximum value of 100.
6142
+ #
6143
+ # @option params [String] :next_token
6144
+ # A pagination token from a previous response. Use this token to
6145
+ # retrieve the next page of results.
6146
+ #
6147
+ # @option params [String] :status
6148
+ # The configuration status to filter by.
6149
+ #
6150
+ # @return [Types::ListCustomDetectionRuleOrgConfigurationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6151
+ #
6152
+ # * {Types::ListCustomDetectionRuleOrgConfigurationsResponse#configurations #configurations} => Array&lt;Types::DetectionRuleOrgConfigurationSummary&gt;
6153
+ # * {Types::ListCustomDetectionRuleOrgConfigurationsResponse#next_token #next_token} => String
6154
+ #
6155
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6156
+ #
6157
+ # @example Request syntax with placeholder values
6158
+ #
6159
+ # resp = client.list_custom_detection_rule_org_configurations({
6160
+ # max_results: 1,
6161
+ # next_token: "String",
6162
+ # status: "ACTIVE", # accepts ACTIVE, PROCESSING, FAILED
6163
+ # })
6164
+ #
6165
+ # @example Response structure
6166
+ #
6167
+ # resp.configurations #=> Array
6168
+ # resp.configurations[0].rule_id #=> String
6169
+ # resp.configurations[0].mode #=> String, one of "LIVE", "DRY_RUN"
6170
+ # resp.configurations[0].status #=> String, one of "ACTIVE", "PROCESSING", "FAILED"
6171
+ # resp.configurations[0].status_reason #=> String
6172
+ # resp.configurations[0].created_at #=> Time
6173
+ # resp.configurations[0].updated_at #=> Time
6174
+ # resp.configurations[0].expires_at #=> Time
6175
+ # resp.next_token #=> String
6176
+ #
6177
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListCustomDetectionRuleOrgConfigurations AWS API Documentation
6178
+ #
6179
+ # @overload list_custom_detection_rule_org_configurations(params = {})
6180
+ # @param [Hash] params ({})
6181
+ def list_custom_detection_rule_org_configurations(params = {}, options = {})
6182
+ req = build_request(:list_custom_detection_rule_org_configurations, params)
6183
+ req.send_request(options)
6184
+ end
6185
+
6186
+ # Returns all available custom detection rules in GuardDuty. You can
6187
+ # filter the results by data source, severity, tactic, technique, and
6188
+ # service.
6189
+ #
6190
+ # @option params [Integer] :max_results
6191
+ # The maximum number of results to return in a single page. Minimum
6192
+ # value of 1, maximum value of 100.
6193
+ #
6194
+ # @option params [String] :next_token
6195
+ # A pagination token from a previous response. Use this token to
6196
+ # retrieve the next page of results.
6197
+ #
6198
+ # @option params [Array<Types::DetectionRuleFilter>] :filters
6199
+ # A list of filter criteria to apply when listing custom detection
6200
+ # rules.
6201
+ #
6202
+ # @return [Types::ListCustomDetectionRulesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6203
+ #
6204
+ # * {Types::ListCustomDetectionRulesResponse#rules #rules} => Array&lt;Types::RuleSummary&gt;
6205
+ # * {Types::ListCustomDetectionRulesResponse#next_token #next_token} => String
6206
+ #
6207
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6208
+ #
6209
+ # @example Request syntax with placeholder values
6210
+ #
6211
+ # resp = client.list_custom_detection_rules({
6212
+ # max_results: 1,
6213
+ # next_token: "String",
6214
+ # filters: [
6215
+ # {
6216
+ # name: "name", # required, accepts name, description, dataSource, severity, tactic, technique, service
6217
+ # values: ["DetectionRuleFilterValue"], # required
6218
+ # condition: "EQUALS", # accepts EQUALS, CONTAINS
6219
+ # },
6220
+ # ],
6221
+ # })
6222
+ #
6223
+ # @example Response structure
6224
+ #
6225
+ # resp.rules #=> Array
6226
+ # resp.rules[0].rule_id #=> String
6227
+ # resp.rules[0].arn #=> String
6228
+ # resp.rules[0].name #=> String
6229
+ # resp.rules[0].description #=> String
6230
+ # resp.rules[0].severity #=> String, one of "CRITICAL", "HIGH", "MEDIUM", "LOW"
6231
+ # resp.rules[0].data_source #=> String, one of "CloudTrailManagementEvent"
6232
+ # resp.rules[0].tactic #=> String
6233
+ # resp.rules[0].technique #=> String
6234
+ # resp.rules[0].service #=> String
6235
+ # resp.rules[0].language #=> String, one of "SQL"
6236
+ # resp.rules[0].schema #=> String, one of "CloudTrail"
6237
+ # resp.rules[0].created_at #=> Time
6238
+ # resp.rules[0].updated_at #=> Time
6239
+ # resp.next_token #=> String
6240
+ #
6241
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListCustomDetectionRules AWS API Documentation
6242
+ #
6243
+ # @overload list_custom_detection_rules(params = {})
6244
+ # @param [Hash] params ({})
6245
+ def list_custom_detection_rules(params = {}, options = {})
6246
+ req = build_request(:list_custom_detection_rules, params)
6247
+ req.send_request(options)
6248
+ end
6249
+
5789
6250
  # Lists detectorIds of all the existing Amazon GuardDuty detector
5790
6251
  # resources.
5791
6252
  #
@@ -7048,6 +7509,74 @@ module Aws::GuardDuty
7048
7509
  req.send_request(options)
7049
7510
  end
7050
7511
 
7512
+ # Updates the mode of an existing custom detection rule association.
7513
+ #
7514
+ # @option params [required, String] :rule_id
7515
+ # The unique identifier for the custom detection rule.
7516
+ #
7517
+ # @option params [required, String] :association_id
7518
+ # The unique identifier for the association to update.
7519
+ #
7520
+ # @option params [required, String] :mode
7521
+ # The rule execution mode. Valid values: `LIVE` \| `DRY_RUN`.
7522
+ #
7523
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
7524
+ #
7525
+ # @example Request syntax with placeholder values
7526
+ #
7527
+ # resp = client.update_custom_detection_rule_association({
7528
+ # rule_id: "RuleId", # required
7529
+ # association_id: "AssociationId", # required
7530
+ # mode: "LIVE", # required, accepts LIVE, DRY_RUN
7531
+ # })
7532
+ #
7533
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateCustomDetectionRuleAssociation AWS API Documentation
7534
+ #
7535
+ # @overload update_custom_detection_rule_association(params = {})
7536
+ # @param [Hash] params ({})
7537
+ def update_custom_detection_rule_association(params = {}, options = {})
7538
+ req = build_request(:update_custom_detection_rule_association, params)
7539
+ req.send_request(options)
7540
+ end
7541
+
7542
+ # Updates the organization-level configuration for a custom detection
7543
+ # rule, including the mode and include/exclude account lists.
7544
+ #
7545
+ # @option params [required, String] :rule_id
7546
+ # The unique identifier for the custom detection rule.
7547
+ #
7548
+ # @option params [required, String] :mode
7549
+ # The execution mode of the organization configuration. Valid values:
7550
+ # `LIVE` \| `DRY_RUN`.
7551
+ #
7552
+ # @option params [Array<String>] :include_account_ids
7553
+ # The account IDs to include in the organization configuration. Mutually
7554
+ # exclusive with `ExcludeAccountIds`.
7555
+ #
7556
+ # @option params [Array<String>] :exclude_account_ids
7557
+ # The account IDs to exclude from the organization configuration.
7558
+ # Mutually exclusive with `IncludeAccountIds`.
7559
+ #
7560
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
7561
+ #
7562
+ # @example Request syntax with placeholder values
7563
+ #
7564
+ # resp = client.update_custom_detection_rule_org_configuration({
7565
+ # rule_id: "RuleId", # required
7566
+ # mode: "LIVE", # required, accepts LIVE, DRY_RUN
7567
+ # include_account_ids: ["AccountId"],
7568
+ # exclude_account_ids: ["AccountId"],
7569
+ # })
7570
+ #
7571
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateCustomDetectionRuleOrgConfiguration AWS API Documentation
7572
+ #
7573
+ # @overload update_custom_detection_rule_org_configuration(params = {})
7574
+ # @param [Hash] params ({})
7575
+ def update_custom_detection_rule_org_configuration(params = {}, options = {})
7576
+ req = build_request(:update_custom_detection_rule_org_configuration, params)
7577
+ req.send_request(options)
7578
+ end
7579
+
7051
7580
  # Updates the GuardDuty detector specified by the detector ID.
7052
7581
  #
7053
7582
  # Specifying both EKS Runtime Monitoring (`EKS_RUNTIME_MONITORING`) and
@@ -9203,7 +9732,7 @@ module Aws::GuardDuty
9203
9732
  tracer: tracer
9204
9733
  )
9205
9734
  context[:gem_name] = 'aws-sdk-guardduty'
9206
- context[:gem_version] = '1.158.0'
9735
+ context[:gem_version] = '1.160.0'
9207
9736
  Seahorse::Client::Request.new(handlers, context)
9208
9737
  end
9209
9738