aws-sdk-guardduty 1.158.0 → 1.159.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-guardduty/client.rb +524 -1
- data/lib/aws-sdk-guardduty/client_api.rb +405 -0
- data/lib/aws-sdk-guardduty/types.rb +805 -0
- data/lib/aws-sdk-guardduty.rb +1 -1
- data/sig/client.rbs +148 -0
- data/sig/types.rbs +231 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3f96dac55adae3d5448f88d426d18aa28f6b7b9839ca08ff1bae213a67f6a055
|
|
4
|
+
data.tar.gz: 8cdfb5b5c6e7f90c79b855182109634a13bf3e85ae803e0e288760539328301b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a997b2292401bdf785fca19a810a1b6842e99b7107ff3a66959fbcdb6d225f137583b05e72bd8b3cbcfe67434fc2884276fafa7858f3d7824765e72b27e37f8a
|
|
7
|
+
data.tar.gz: 7ed2ffb529371b7f6531a037132f27e9d13a59ef0af33ef28ec2071464f084ff54fd10c9caae6dbb6f9bfe0c8c497365d250dba21c7261b263e58c47230e94d7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.159.0 (2026-09-01)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Amazon GuardDuty now supports custom detection rules, including APIs to manage rule associations and organization-level configurations.
|
|
8
|
+
|
|
4
9
|
1.158.0 (2026-07-22)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.159.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<String,String>
|
|
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
|
|
@@ -5786,6 +6072,175 @@ module Aws::GuardDuty
|
|
|
5786
6072
|
req.send_request(options)
|
|
5787
6073
|
end
|
|
5788
6074
|
|
|
6075
|
+
# Returns all custom detection rule associations for your account. You
|
|
6076
|
+
# can filter by rule ID and mode.
|
|
6077
|
+
#
|
|
6078
|
+
# @option params [Integer] :max_results
|
|
6079
|
+
# The maximum number of results to return in a single page. Minimum
|
|
6080
|
+
# value of 1, maximum value of 100.
|
|
6081
|
+
#
|
|
6082
|
+
# @option params [String] :next_token
|
|
6083
|
+
# A pagination token from a previous response. Use this token to
|
|
6084
|
+
# retrieve the next page of results.
|
|
6085
|
+
#
|
|
6086
|
+
# @option params [String] :rule_id
|
|
6087
|
+
# The unique identifier for the custom detection rule to filter
|
|
6088
|
+
# associations by.
|
|
6089
|
+
#
|
|
6090
|
+
# @option params [String] :mode
|
|
6091
|
+
# The rule execution mode to filter associations by.
|
|
6092
|
+
#
|
|
6093
|
+
# @return [Types::ListCustomDetectionRuleAssociationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
6094
|
+
#
|
|
6095
|
+
# * {Types::ListCustomDetectionRuleAssociationsResponse#rule_associations #rule_associations} => Array<Types::AssociationSummary>
|
|
6096
|
+
# * {Types::ListCustomDetectionRuleAssociationsResponse#next_token #next_token} => String
|
|
6097
|
+
#
|
|
6098
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
6099
|
+
#
|
|
6100
|
+
# @example Request syntax with placeholder values
|
|
6101
|
+
#
|
|
6102
|
+
# resp = client.list_custom_detection_rule_associations({
|
|
6103
|
+
# max_results: 1,
|
|
6104
|
+
# next_token: "String",
|
|
6105
|
+
# rule_id: "RuleId",
|
|
6106
|
+
# mode: "LIVE", # accepts LIVE, DRY_RUN
|
|
6107
|
+
# })
|
|
6108
|
+
#
|
|
6109
|
+
# @example Response structure
|
|
6110
|
+
#
|
|
6111
|
+
# resp.rule_associations #=> Array
|
|
6112
|
+
# resp.rule_associations[0].association_id #=> String
|
|
6113
|
+
# resp.rule_associations[0].arn #=> String
|
|
6114
|
+
# resp.rule_associations[0].rule_id #=> String
|
|
6115
|
+
# resp.rule_associations[0].mode #=> String, one of "LIVE", "DRY_RUN"
|
|
6116
|
+
# resp.rule_associations[0].created_at #=> Time
|
|
6117
|
+
# resp.rule_associations[0].updated_at #=> Time
|
|
6118
|
+
# resp.rule_associations[0].expires_at #=> Time
|
|
6119
|
+
# resp.next_token #=> String
|
|
6120
|
+
#
|
|
6121
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListCustomDetectionRuleAssociations AWS API Documentation
|
|
6122
|
+
#
|
|
6123
|
+
# @overload list_custom_detection_rule_associations(params = {})
|
|
6124
|
+
# @param [Hash] params ({})
|
|
6125
|
+
def list_custom_detection_rule_associations(params = {}, options = {})
|
|
6126
|
+
req = build_request(:list_custom_detection_rule_associations, params)
|
|
6127
|
+
req.send_request(options)
|
|
6128
|
+
end
|
|
6129
|
+
|
|
6130
|
+
# Returns all organization-level configurations for custom detection
|
|
6131
|
+
# rules. You can filter the results by status.
|
|
6132
|
+
#
|
|
6133
|
+
# @option params [Integer] :max_results
|
|
6134
|
+
# The maximum number of results to return in a single page. Minimum
|
|
6135
|
+
# value of 1, maximum value of 100.
|
|
6136
|
+
#
|
|
6137
|
+
# @option params [String] :next_token
|
|
6138
|
+
# A pagination token from a previous response. Use this token to
|
|
6139
|
+
# retrieve the next page of results.
|
|
6140
|
+
#
|
|
6141
|
+
# @option params [String] :status
|
|
6142
|
+
# The configuration status to filter by.
|
|
6143
|
+
#
|
|
6144
|
+
# @return [Types::ListCustomDetectionRuleOrgConfigurationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
6145
|
+
#
|
|
6146
|
+
# * {Types::ListCustomDetectionRuleOrgConfigurationsResponse#configurations #configurations} => Array<Types::DetectionRuleOrgConfigurationSummary>
|
|
6147
|
+
# * {Types::ListCustomDetectionRuleOrgConfigurationsResponse#next_token #next_token} => String
|
|
6148
|
+
#
|
|
6149
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
6150
|
+
#
|
|
6151
|
+
# @example Request syntax with placeholder values
|
|
6152
|
+
#
|
|
6153
|
+
# resp = client.list_custom_detection_rule_org_configurations({
|
|
6154
|
+
# max_results: 1,
|
|
6155
|
+
# next_token: "String",
|
|
6156
|
+
# status: "ACTIVE", # accepts ACTIVE, PROCESSING, FAILED
|
|
6157
|
+
# })
|
|
6158
|
+
#
|
|
6159
|
+
# @example Response structure
|
|
6160
|
+
#
|
|
6161
|
+
# resp.configurations #=> Array
|
|
6162
|
+
# resp.configurations[0].rule_id #=> String
|
|
6163
|
+
# resp.configurations[0].mode #=> String, one of "LIVE", "DRY_RUN"
|
|
6164
|
+
# resp.configurations[0].status #=> String, one of "ACTIVE", "PROCESSING", "FAILED"
|
|
6165
|
+
# resp.configurations[0].status_reason #=> String
|
|
6166
|
+
# resp.configurations[0].created_at #=> Time
|
|
6167
|
+
# resp.configurations[0].updated_at #=> Time
|
|
6168
|
+
# resp.configurations[0].expires_at #=> Time
|
|
6169
|
+
# resp.next_token #=> String
|
|
6170
|
+
#
|
|
6171
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListCustomDetectionRuleOrgConfigurations AWS API Documentation
|
|
6172
|
+
#
|
|
6173
|
+
# @overload list_custom_detection_rule_org_configurations(params = {})
|
|
6174
|
+
# @param [Hash] params ({})
|
|
6175
|
+
def list_custom_detection_rule_org_configurations(params = {}, options = {})
|
|
6176
|
+
req = build_request(:list_custom_detection_rule_org_configurations, params)
|
|
6177
|
+
req.send_request(options)
|
|
6178
|
+
end
|
|
6179
|
+
|
|
6180
|
+
# Returns all available custom detection rules in GuardDuty. You can
|
|
6181
|
+
# filter the results by data source, severity, tactic, technique, and
|
|
6182
|
+
# service.
|
|
6183
|
+
#
|
|
6184
|
+
# @option params [Integer] :max_results
|
|
6185
|
+
# The maximum number of results to return in a single page. Minimum
|
|
6186
|
+
# value of 1, maximum value of 100.
|
|
6187
|
+
#
|
|
6188
|
+
# @option params [String] :next_token
|
|
6189
|
+
# A pagination token from a previous response. Use this token to
|
|
6190
|
+
# retrieve the next page of results.
|
|
6191
|
+
#
|
|
6192
|
+
# @option params [Array<Types::DetectionRuleFilter>] :filters
|
|
6193
|
+
# A list of filter criteria to apply when listing custom detection
|
|
6194
|
+
# rules.
|
|
6195
|
+
#
|
|
6196
|
+
# @return [Types::ListCustomDetectionRulesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
6197
|
+
#
|
|
6198
|
+
# * {Types::ListCustomDetectionRulesResponse#rules #rules} => Array<Types::RuleSummary>
|
|
6199
|
+
# * {Types::ListCustomDetectionRulesResponse#next_token #next_token} => String
|
|
6200
|
+
#
|
|
6201
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
6202
|
+
#
|
|
6203
|
+
# @example Request syntax with placeholder values
|
|
6204
|
+
#
|
|
6205
|
+
# resp = client.list_custom_detection_rules({
|
|
6206
|
+
# max_results: 1,
|
|
6207
|
+
# next_token: "String",
|
|
6208
|
+
# filters: [
|
|
6209
|
+
# {
|
|
6210
|
+
# name: "name", # required, accepts name, description, dataSource, severity, tactic, technique, service
|
|
6211
|
+
# values: ["DetectionRuleFilterValue"], # required
|
|
6212
|
+
# condition: "EQUALS", # accepts EQUALS, CONTAINS
|
|
6213
|
+
# },
|
|
6214
|
+
# ],
|
|
6215
|
+
# })
|
|
6216
|
+
#
|
|
6217
|
+
# @example Response structure
|
|
6218
|
+
#
|
|
6219
|
+
# resp.rules #=> Array
|
|
6220
|
+
# resp.rules[0].rule_id #=> String
|
|
6221
|
+
# resp.rules[0].arn #=> String
|
|
6222
|
+
# resp.rules[0].name #=> String
|
|
6223
|
+
# resp.rules[0].description #=> String
|
|
6224
|
+
# resp.rules[0].severity #=> String, one of "CRITICAL", "HIGH", "MEDIUM", "LOW"
|
|
6225
|
+
# resp.rules[0].data_source #=> String, one of "CloudTrailManagementEvent"
|
|
6226
|
+
# resp.rules[0].tactic #=> String
|
|
6227
|
+
# resp.rules[0].technique #=> String
|
|
6228
|
+
# resp.rules[0].service #=> String
|
|
6229
|
+
# resp.rules[0].language #=> String, one of "SQL"
|
|
6230
|
+
# resp.rules[0].schema #=> String, one of "CloudTrail"
|
|
6231
|
+
# resp.rules[0].created_at #=> Time
|
|
6232
|
+
# resp.rules[0].updated_at #=> Time
|
|
6233
|
+
# resp.next_token #=> String
|
|
6234
|
+
#
|
|
6235
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListCustomDetectionRules AWS API Documentation
|
|
6236
|
+
#
|
|
6237
|
+
# @overload list_custom_detection_rules(params = {})
|
|
6238
|
+
# @param [Hash] params ({})
|
|
6239
|
+
def list_custom_detection_rules(params = {}, options = {})
|
|
6240
|
+
req = build_request(:list_custom_detection_rules, params)
|
|
6241
|
+
req.send_request(options)
|
|
6242
|
+
end
|
|
6243
|
+
|
|
5789
6244
|
# Lists detectorIds of all the existing Amazon GuardDuty detector
|
|
5790
6245
|
# resources.
|
|
5791
6246
|
#
|
|
@@ -7048,6 +7503,74 @@ module Aws::GuardDuty
|
|
|
7048
7503
|
req.send_request(options)
|
|
7049
7504
|
end
|
|
7050
7505
|
|
|
7506
|
+
# Updates the mode of an existing custom detection rule association.
|
|
7507
|
+
#
|
|
7508
|
+
# @option params [required, String] :rule_id
|
|
7509
|
+
# The unique identifier for the custom detection rule.
|
|
7510
|
+
#
|
|
7511
|
+
# @option params [required, String] :association_id
|
|
7512
|
+
# The unique identifier for the association to update.
|
|
7513
|
+
#
|
|
7514
|
+
# @option params [required, String] :mode
|
|
7515
|
+
# The rule execution mode. Valid values: `LIVE` \| `DRY_RUN`.
|
|
7516
|
+
#
|
|
7517
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
7518
|
+
#
|
|
7519
|
+
# @example Request syntax with placeholder values
|
|
7520
|
+
#
|
|
7521
|
+
# resp = client.update_custom_detection_rule_association({
|
|
7522
|
+
# rule_id: "RuleId", # required
|
|
7523
|
+
# association_id: "AssociationId", # required
|
|
7524
|
+
# mode: "LIVE", # required, accepts LIVE, DRY_RUN
|
|
7525
|
+
# })
|
|
7526
|
+
#
|
|
7527
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateCustomDetectionRuleAssociation AWS API Documentation
|
|
7528
|
+
#
|
|
7529
|
+
# @overload update_custom_detection_rule_association(params = {})
|
|
7530
|
+
# @param [Hash] params ({})
|
|
7531
|
+
def update_custom_detection_rule_association(params = {}, options = {})
|
|
7532
|
+
req = build_request(:update_custom_detection_rule_association, params)
|
|
7533
|
+
req.send_request(options)
|
|
7534
|
+
end
|
|
7535
|
+
|
|
7536
|
+
# Updates the organization-level configuration for a custom detection
|
|
7537
|
+
# rule, including the mode and include/exclude account lists.
|
|
7538
|
+
#
|
|
7539
|
+
# @option params [required, String] :rule_id
|
|
7540
|
+
# The unique identifier for the custom detection rule.
|
|
7541
|
+
#
|
|
7542
|
+
# @option params [required, String] :mode
|
|
7543
|
+
# The execution mode of the organization configuration. Valid values:
|
|
7544
|
+
# `LIVE` \| `DRY_RUN`.
|
|
7545
|
+
#
|
|
7546
|
+
# @option params [Array<String>] :include_account_ids
|
|
7547
|
+
# The account IDs to include in the organization configuration. Mutually
|
|
7548
|
+
# exclusive with `ExcludeAccountIds`.
|
|
7549
|
+
#
|
|
7550
|
+
# @option params [Array<String>] :exclude_account_ids
|
|
7551
|
+
# The account IDs to exclude from the organization configuration.
|
|
7552
|
+
# Mutually exclusive with `IncludeAccountIds`.
|
|
7553
|
+
#
|
|
7554
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
7555
|
+
#
|
|
7556
|
+
# @example Request syntax with placeholder values
|
|
7557
|
+
#
|
|
7558
|
+
# resp = client.update_custom_detection_rule_org_configuration({
|
|
7559
|
+
# rule_id: "RuleId", # required
|
|
7560
|
+
# mode: "LIVE", # required, accepts LIVE, DRY_RUN
|
|
7561
|
+
# include_account_ids: ["AccountId"],
|
|
7562
|
+
# exclude_account_ids: ["AccountId"],
|
|
7563
|
+
# })
|
|
7564
|
+
#
|
|
7565
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateCustomDetectionRuleOrgConfiguration AWS API Documentation
|
|
7566
|
+
#
|
|
7567
|
+
# @overload update_custom_detection_rule_org_configuration(params = {})
|
|
7568
|
+
# @param [Hash] params ({})
|
|
7569
|
+
def update_custom_detection_rule_org_configuration(params = {}, options = {})
|
|
7570
|
+
req = build_request(:update_custom_detection_rule_org_configuration, params)
|
|
7571
|
+
req.send_request(options)
|
|
7572
|
+
end
|
|
7573
|
+
|
|
7051
7574
|
# Updates the GuardDuty detector specified by the detector ID.
|
|
7052
7575
|
#
|
|
7053
7576
|
# Specifying both EKS Runtime Monitoring (`EKS_RUNTIME_MONITORING`) and
|
|
@@ -9203,7 +9726,7 @@ module Aws::GuardDuty
|
|
|
9203
9726
|
tracer: tracer
|
|
9204
9727
|
)
|
|
9205
9728
|
context[:gem_name] = 'aws-sdk-guardduty'
|
|
9206
|
-
context[:gem_version] = '1.
|
|
9729
|
+
context[:gem_version] = '1.159.0'
|
|
9207
9730
|
Seahorse::Client::Request.new(handlers, context)
|
|
9208
9731
|
end
|
|
9209
9732
|
|