aws-sdk-fms 1.27.1 → 1.32.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/lib/aws-sdk-fms.rb +5 -2
- data/lib/aws-sdk-fms/client.rb +508 -22
- data/lib/aws-sdk-fms/client_api.rb +333 -0
- data/lib/aws-sdk-fms/errors.rb +2 -0
- data/lib/aws-sdk-fms/resource.rb +2 -0
- data/lib/aws-sdk-fms/types.rb +977 -20
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9457496898387c68d4bae01a7ea97f7c0c1fe73ff4cefacb2e5d7977845b3a01
|
4
|
+
data.tar.gz: 3b40ad228d2cdf95aa7e1287fa5c6197dd912222e9e7ed1c5aac84a9967fc491
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c17dbad12b9cde7435992286ab65416c228f3bd020c41f3273c6a1c55d897e875a364186d641f8d9c6e8119e2a7948ab961af37438fcc68b93c613ed7e670de9
|
7
|
+
data.tar.gz: 81cfd8d5e23c34356ffacf08fde13a831c827e46bca8eaad8f2cba47b5ee7a193b1e88ad99f6ca1a6d880b35e4ff1262f060504e55566b96e9ef6c41e3c19a7d
|
data/lib/aws-sdk-fms.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -5,6 +7,7 @@
|
|
5
7
|
#
|
6
8
|
# WARNING ABOUT GENERATED CODE
|
7
9
|
|
10
|
+
|
8
11
|
require 'aws-sdk-core'
|
9
12
|
require 'aws-sigv4'
|
10
13
|
|
@@ -42,9 +45,9 @@ require_relative 'aws-sdk-fms/customizations'
|
|
42
45
|
#
|
43
46
|
# See {Errors} for more information.
|
44
47
|
#
|
45
|
-
#
|
48
|
+
# @!group service
|
46
49
|
module Aws::FMS
|
47
50
|
|
48
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.32.0'
|
49
52
|
|
50
53
|
end
|
data/lib/aws-sdk-fms/client.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -83,13 +85,28 @@ module Aws::FMS
|
|
83
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
84
86
|
# credentials.
|
85
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
86
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
87
103
|
# from an EC2 IMDS on an EC2 instance.
|
88
104
|
#
|
89
|
-
# * `Aws::
|
90
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
91
107
|
#
|
92
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
93
110
|
#
|
94
111
|
# When `:credentials` are not configured directly, the following
|
95
112
|
# locations will be searched for credentials:
|
@@ -99,10 +116,10 @@ module Aws::FMS
|
|
99
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
100
117
|
# * `~/.aws/credentials`
|
101
118
|
# * `~/.aws/config`
|
102
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
103
|
-
# very aggressive. Construct and pass an instance of
|
104
|
-
# `Aws::InstanceProfileCredentails`
|
105
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
106
123
|
#
|
107
124
|
# @option options [required, String] :region
|
108
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -358,6 +375,30 @@ module Aws::FMS
|
|
358
375
|
req.send_request(options)
|
359
376
|
end
|
360
377
|
|
378
|
+
# Permanently deletes an AWS Firewall Manager applications list.
|
379
|
+
#
|
380
|
+
# @option params [required, String] :list_id
|
381
|
+
# The ID of the applications list that you want to delete. You can
|
382
|
+
# retrieve this ID from `PutAppsList`, `ListAppsLists`, and
|
383
|
+
# `GetAppsList`.
|
384
|
+
#
|
385
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
386
|
+
#
|
387
|
+
# @example Request syntax with placeholder values
|
388
|
+
#
|
389
|
+
# resp = client.delete_apps_list({
|
390
|
+
# list_id: "ListId", # required
|
391
|
+
# })
|
392
|
+
#
|
393
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/DeleteAppsList AWS API Documentation
|
394
|
+
#
|
395
|
+
# @overload delete_apps_list(params = {})
|
396
|
+
# @param [Hash] params ({})
|
397
|
+
def delete_apps_list(params = {}, options = {})
|
398
|
+
req = build_request(:delete_apps_list, params)
|
399
|
+
req.send_request(options)
|
400
|
+
end
|
401
|
+
|
361
402
|
# Deletes an AWS Firewall Manager association with the IAM role and the
|
362
403
|
# Amazon Simple Notification Service (SNS) topic that is used to record
|
363
404
|
# AWS Firewall Manager SNS logs.
|
@@ -376,8 +417,8 @@ module Aws::FMS
|
|
376
417
|
# Permanently deletes an AWS Firewall Manager policy.
|
377
418
|
#
|
378
419
|
# @option params [required, String] :policy_id
|
379
|
-
# The ID of the policy that you want to delete.
|
380
|
-
#
|
420
|
+
# The ID of the policy that you want to delete. You can retrieve this ID
|
421
|
+
# from `PutPolicy` and `ListPolicies`.
|
381
422
|
#
|
382
423
|
# @option params [Boolean] :delete_all_policy_resources
|
383
424
|
# If `True`, the request performs cleanup according to the policy type.
|
@@ -427,6 +468,30 @@ module Aws::FMS
|
|
427
468
|
req.send_request(options)
|
428
469
|
end
|
429
470
|
|
471
|
+
# Permanently deletes an AWS Firewall Manager protocols list.
|
472
|
+
#
|
473
|
+
# @option params [required, String] :list_id
|
474
|
+
# The ID of the protocols list that you want to delete. You can retrieve
|
475
|
+
# this ID from `PutProtocolsList`, `ListProtocolsLists`, and
|
476
|
+
# `GetProtocolsLost`.
|
477
|
+
#
|
478
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
479
|
+
#
|
480
|
+
# @example Request syntax with placeholder values
|
481
|
+
#
|
482
|
+
# resp = client.delete_protocols_list({
|
483
|
+
# list_id: "ListId", # required
|
484
|
+
# })
|
485
|
+
#
|
486
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/DeleteProtocolsList AWS API Documentation
|
487
|
+
#
|
488
|
+
# @overload delete_protocols_list(params = {})
|
489
|
+
# @param [Hash] params ({})
|
490
|
+
def delete_protocols_list(params = {}, options = {})
|
491
|
+
req = build_request(:delete_protocols_list, params)
|
492
|
+
req.send_request(options)
|
493
|
+
end
|
494
|
+
|
430
495
|
# Disassociates the account that has been set as the AWS Firewall
|
431
496
|
# Manager administrator account. To set a different account as the
|
432
497
|
# administrator account, you must submit an `AssociateAdminAccount`
|
@@ -465,6 +530,56 @@ module Aws::FMS
|
|
465
530
|
req.send_request(options)
|
466
531
|
end
|
467
532
|
|
533
|
+
# Returns information about the specified AWS Firewall Manager
|
534
|
+
# applications list.
|
535
|
+
#
|
536
|
+
# @option params [required, String] :list_id
|
537
|
+
# The ID of the AWS Firewall Manager applications list that you want the
|
538
|
+
# details for.
|
539
|
+
#
|
540
|
+
# @option params [Boolean] :default_list
|
541
|
+
# Specifies whether the list to retrieve is a default list owned by AWS
|
542
|
+
# Firewall Manager.
|
543
|
+
#
|
544
|
+
# @return [Types::GetAppsListResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
545
|
+
#
|
546
|
+
# * {Types::GetAppsListResponse#apps_list #apps_list} => Types::AppsListData
|
547
|
+
# * {Types::GetAppsListResponse#apps_list_arn #apps_list_arn} => String
|
548
|
+
#
|
549
|
+
# @example Request syntax with placeholder values
|
550
|
+
#
|
551
|
+
# resp = client.get_apps_list({
|
552
|
+
# list_id: "ListId", # required
|
553
|
+
# default_list: false,
|
554
|
+
# })
|
555
|
+
#
|
556
|
+
# @example Response structure
|
557
|
+
#
|
558
|
+
# resp.apps_list.list_id #=> String
|
559
|
+
# resp.apps_list.list_name #=> String
|
560
|
+
# resp.apps_list.list_update_token #=> String
|
561
|
+
# resp.apps_list.create_time #=> Time
|
562
|
+
# resp.apps_list.last_update_time #=> Time
|
563
|
+
# resp.apps_list.apps_list #=> Array
|
564
|
+
# resp.apps_list.apps_list[0].app_name #=> String
|
565
|
+
# resp.apps_list.apps_list[0].protocol #=> String
|
566
|
+
# resp.apps_list.apps_list[0].port #=> Integer
|
567
|
+
# resp.apps_list.previous_apps_list #=> Hash
|
568
|
+
# resp.apps_list.previous_apps_list["PreviousListVersion"] #=> Array
|
569
|
+
# resp.apps_list.previous_apps_list["PreviousListVersion"][0].app_name #=> String
|
570
|
+
# resp.apps_list.previous_apps_list["PreviousListVersion"][0].protocol #=> String
|
571
|
+
# resp.apps_list.previous_apps_list["PreviousListVersion"][0].port #=> Integer
|
572
|
+
# resp.apps_list_arn #=> String
|
573
|
+
#
|
574
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/GetAppsList AWS API Documentation
|
575
|
+
#
|
576
|
+
# @overload get_apps_list(params = {})
|
577
|
+
# @param [Hash] params ({})
|
578
|
+
def get_apps_list(params = {}, options = {})
|
579
|
+
req = build_request(:get_apps_list, params)
|
580
|
+
req.send_request(options)
|
581
|
+
end
|
582
|
+
|
468
583
|
# Returns detailed compliance information about the specified member
|
469
584
|
# account. Details include resources that are in and out of compliance
|
470
585
|
# with the specified policy. Resources are considered noncompliant for
|
@@ -659,9 +774,193 @@ module Aws::FMS
|
|
659
774
|
req.send_request(options)
|
660
775
|
end
|
661
776
|
|
662
|
-
# Returns
|
663
|
-
#
|
664
|
-
#
|
777
|
+
# Returns information about the specified AWS Firewall Manager protocols
|
778
|
+
# list.
|
779
|
+
#
|
780
|
+
# @option params [required, String] :list_id
|
781
|
+
# The ID of the AWS Firewall Manager protocols list that you want the
|
782
|
+
# details for.
|
783
|
+
#
|
784
|
+
# @option params [Boolean] :default_list
|
785
|
+
# Specifies whether the list to retrieve is a default list owned by AWS
|
786
|
+
# Firewall Manager.
|
787
|
+
#
|
788
|
+
# @return [Types::GetProtocolsListResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
789
|
+
#
|
790
|
+
# * {Types::GetProtocolsListResponse#protocols_list #protocols_list} => Types::ProtocolsListData
|
791
|
+
# * {Types::GetProtocolsListResponse#protocols_list_arn #protocols_list_arn} => String
|
792
|
+
#
|
793
|
+
# @example Request syntax with placeholder values
|
794
|
+
#
|
795
|
+
# resp = client.get_protocols_list({
|
796
|
+
# list_id: "ListId", # required
|
797
|
+
# default_list: false,
|
798
|
+
# })
|
799
|
+
#
|
800
|
+
# @example Response structure
|
801
|
+
#
|
802
|
+
# resp.protocols_list.list_id #=> String
|
803
|
+
# resp.protocols_list.list_name #=> String
|
804
|
+
# resp.protocols_list.list_update_token #=> String
|
805
|
+
# resp.protocols_list.create_time #=> Time
|
806
|
+
# resp.protocols_list.last_update_time #=> Time
|
807
|
+
# resp.protocols_list.protocols_list #=> Array
|
808
|
+
# resp.protocols_list.protocols_list[0] #=> String
|
809
|
+
# resp.protocols_list.previous_protocols_list #=> Hash
|
810
|
+
# resp.protocols_list.previous_protocols_list["PreviousListVersion"] #=> Array
|
811
|
+
# resp.protocols_list.previous_protocols_list["PreviousListVersion"][0] #=> String
|
812
|
+
# resp.protocols_list_arn #=> String
|
813
|
+
#
|
814
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/GetProtocolsList AWS API Documentation
|
815
|
+
#
|
816
|
+
# @overload get_protocols_list(params = {})
|
817
|
+
# @param [Hash] params ({})
|
818
|
+
def get_protocols_list(params = {}, options = {})
|
819
|
+
req = build_request(:get_protocols_list, params)
|
820
|
+
req.send_request(options)
|
821
|
+
end
|
822
|
+
|
823
|
+
# Retrieves violations for a resource based on the specified AWS
|
824
|
+
# Firewall Manager policy and AWS account.
|
825
|
+
#
|
826
|
+
# @option params [required, String] :policy_id
|
827
|
+
# The ID of the AWS Firewall Manager policy that you want the details
|
828
|
+
# for. This currently only supports security group content audit
|
829
|
+
# policies.
|
830
|
+
#
|
831
|
+
# @option params [required, String] :member_account
|
832
|
+
# The AWS account ID that you want the details for.
|
833
|
+
#
|
834
|
+
# @option params [required, String] :resource_id
|
835
|
+
# The ID of the resource that has violations.
|
836
|
+
#
|
837
|
+
# @option params [required, String] :resource_type
|
838
|
+
# The resource type. This is in the format shown in the [AWS Resource
|
839
|
+
# Types Reference][1]. Supported resource types are:
|
840
|
+
# `AWS::EC2::Instance`, `AWS::EC2::NetworkInterface`, or
|
841
|
+
# `AWS::EC2::SecurityGroup`.
|
842
|
+
#
|
843
|
+
#
|
844
|
+
#
|
845
|
+
# [1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html
|
846
|
+
#
|
847
|
+
# @return [Types::GetViolationDetailsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
848
|
+
#
|
849
|
+
# * {Types::GetViolationDetailsResponse#violation_detail #violation_detail} => Types::ViolationDetail
|
850
|
+
#
|
851
|
+
# @example Request syntax with placeholder values
|
852
|
+
#
|
853
|
+
# resp = client.get_violation_details({
|
854
|
+
# policy_id: "PolicyId", # required
|
855
|
+
# member_account: "AWSAccountId", # required
|
856
|
+
# resource_id: "ResourceId", # required
|
857
|
+
# resource_type: "ResourceType", # required
|
858
|
+
# })
|
859
|
+
#
|
860
|
+
# @example Response structure
|
861
|
+
#
|
862
|
+
# resp.violation_detail.policy_id #=> String
|
863
|
+
# resp.violation_detail.member_account #=> String
|
864
|
+
# resp.violation_detail.resource_id #=> String
|
865
|
+
# resp.violation_detail.resource_type #=> String
|
866
|
+
# resp.violation_detail.resource_violations #=> Array
|
867
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.violation_target #=> String
|
868
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.violation_target_description #=> String
|
869
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.partial_matches #=> Array
|
870
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.partial_matches[0].reference #=> String
|
871
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.partial_matches[0].target_violation_reasons #=> Array
|
872
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.partial_matches[0].target_violation_reasons[0] #=> String
|
873
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.possible_security_group_remediation_actions #=> Array
|
874
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.possible_security_group_remediation_actions[0].remediation_action_type #=> String, one of "REMOVE", "MODIFY"
|
875
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.possible_security_group_remediation_actions[0].description #=> String
|
876
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.possible_security_group_remediation_actions[0].remediation_result.ipv4_range #=> String
|
877
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.possible_security_group_remediation_actions[0].remediation_result.ipv6_range #=> String
|
878
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.possible_security_group_remediation_actions[0].remediation_result.prefix_list_id #=> String
|
879
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.possible_security_group_remediation_actions[0].remediation_result.protocol #=> String
|
880
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.possible_security_group_remediation_actions[0].remediation_result.from_port #=> Integer
|
881
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.possible_security_group_remediation_actions[0].remediation_result.to_port #=> Integer
|
882
|
+
# resp.violation_detail.resource_violations[0].aws_vpc_security_group_violation.possible_security_group_remediation_actions[0].is_default_action #=> Boolean
|
883
|
+
# resp.violation_detail.resource_violations[0].aws_ec2_network_interface_violation.violation_target #=> String
|
884
|
+
# resp.violation_detail.resource_violations[0].aws_ec2_network_interface_violation.violating_security_groups #=> Array
|
885
|
+
# resp.violation_detail.resource_violations[0].aws_ec2_network_interface_violation.violating_security_groups[0] #=> String
|
886
|
+
# resp.violation_detail.resource_violations[0].aws_ec2_instance_violation.violation_target #=> String
|
887
|
+
# resp.violation_detail.resource_violations[0].aws_ec2_instance_violation.aws_ec2_network_interface_violations #=> Array
|
888
|
+
# resp.violation_detail.resource_violations[0].aws_ec2_instance_violation.aws_ec2_network_interface_violations[0].violation_target #=> String
|
889
|
+
# resp.violation_detail.resource_violations[0].aws_ec2_instance_violation.aws_ec2_network_interface_violations[0].violating_security_groups #=> Array
|
890
|
+
# resp.violation_detail.resource_violations[0].aws_ec2_instance_violation.aws_ec2_network_interface_violations[0].violating_security_groups[0] #=> String
|
891
|
+
# resp.violation_detail.resource_tags #=> Array
|
892
|
+
# resp.violation_detail.resource_tags[0].key #=> String
|
893
|
+
# resp.violation_detail.resource_tags[0].value #=> String
|
894
|
+
# resp.violation_detail.resource_description #=> String
|
895
|
+
#
|
896
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/GetViolationDetails AWS API Documentation
|
897
|
+
#
|
898
|
+
# @overload get_violation_details(params = {})
|
899
|
+
# @param [Hash] params ({})
|
900
|
+
def get_violation_details(params = {}, options = {})
|
901
|
+
req = build_request(:get_violation_details, params)
|
902
|
+
req.send_request(options)
|
903
|
+
end
|
904
|
+
|
905
|
+
# Returns an array of `AppsListDataSummary` objects.
|
906
|
+
#
|
907
|
+
# @option params [Boolean] :default_lists
|
908
|
+
# Specifies whether the lists to retrieve are default lists owned by AWS
|
909
|
+
# Firewall Manager.
|
910
|
+
#
|
911
|
+
# @option params [String] :next_token
|
912
|
+
# If you specify a value for `MaxResults` in your list request, and you
|
913
|
+
# have more objects than the maximum, AWS Firewall Manager returns this
|
914
|
+
# token in the response. For all but the first request, you provide the
|
915
|
+
# token returned by the prior request in the request parameters, to
|
916
|
+
# retrieve the next batch of objects.
|
917
|
+
#
|
918
|
+
# @option params [required, Integer] :max_results
|
919
|
+
# The maximum number of objects that you want AWS Firewall Manager to
|
920
|
+
# return for this request. If more objects are available, in the
|
921
|
+
# response, AWS Firewall Manager provides a `NextToken` value that you
|
922
|
+
# can use in a subsequent call to get the next batch of objects.
|
923
|
+
#
|
924
|
+
# If you don't specify this, AWS Firewall Manager returns all available
|
925
|
+
# objects.
|
926
|
+
#
|
927
|
+
# @return [Types::ListAppsListsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
928
|
+
#
|
929
|
+
# * {Types::ListAppsListsResponse#apps_lists #apps_lists} => Array<Types::AppsListDataSummary>
|
930
|
+
# * {Types::ListAppsListsResponse#next_token #next_token} => String
|
931
|
+
#
|
932
|
+
# @example Request syntax with placeholder values
|
933
|
+
#
|
934
|
+
# resp = client.list_apps_lists({
|
935
|
+
# default_lists: false,
|
936
|
+
# next_token: "PaginationToken",
|
937
|
+
# max_results: 1, # required
|
938
|
+
# })
|
939
|
+
#
|
940
|
+
# @example Response structure
|
941
|
+
#
|
942
|
+
# resp.apps_lists #=> Array
|
943
|
+
# resp.apps_lists[0].list_arn #=> String
|
944
|
+
# resp.apps_lists[0].list_id #=> String
|
945
|
+
# resp.apps_lists[0].list_name #=> String
|
946
|
+
# resp.apps_lists[0].apps_list #=> Array
|
947
|
+
# resp.apps_lists[0].apps_list[0].app_name #=> String
|
948
|
+
# resp.apps_lists[0].apps_list[0].protocol #=> String
|
949
|
+
# resp.apps_lists[0].apps_list[0].port #=> Integer
|
950
|
+
# resp.next_token #=> String
|
951
|
+
#
|
952
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/ListAppsLists AWS API Documentation
|
953
|
+
#
|
954
|
+
# @overload list_apps_lists(params = {})
|
955
|
+
# @param [Hash] params ({})
|
956
|
+
def list_apps_lists(params = {}, options = {})
|
957
|
+
req = build_request(:list_apps_lists, params)
|
958
|
+
req.send_request(options)
|
959
|
+
end
|
960
|
+
|
961
|
+
# Returns an array of `PolicyComplianceStatus` objects. Use
|
962
|
+
# `PolicyComplianceStatus` to get a summary of which member accounts are
|
963
|
+
# protected by the specified policy.
|
665
964
|
#
|
666
965
|
# @option params [required, String] :policy_id
|
667
966
|
# The ID of the AWS Firewall Manager policy that you want the details
|
@@ -775,7 +1074,7 @@ module Aws::FMS
|
|
775
1074
|
req.send_request(options)
|
776
1075
|
end
|
777
1076
|
|
778
|
-
# Returns an array of `PolicySummary` objects
|
1077
|
+
# Returns an array of `PolicySummary` objects.
|
779
1078
|
#
|
780
1079
|
# @option params [String] :next_token
|
781
1080
|
# If you specify a value for `MaxResults` and you have more
|
@@ -827,12 +1126,66 @@ module Aws::FMS
|
|
827
1126
|
req.send_request(options)
|
828
1127
|
end
|
829
1128
|
|
1129
|
+
# Returns an array of `ProtocolsListDataSummary` objects.
|
1130
|
+
#
|
1131
|
+
# @option params [Boolean] :default_lists
|
1132
|
+
# Specifies whether the lists to retrieve are default lists owned by AWS
|
1133
|
+
# Firewall Manager.
|
1134
|
+
#
|
1135
|
+
# @option params [String] :next_token
|
1136
|
+
# If you specify a value for `MaxResults` in your list request, and you
|
1137
|
+
# have more objects than the maximum, AWS Firewall Manager returns this
|
1138
|
+
# token in the response. For all but the first request, you provide the
|
1139
|
+
# token returned by the prior request in the request parameters, to
|
1140
|
+
# retrieve the next batch of objects.
|
1141
|
+
#
|
1142
|
+
# @option params [required, Integer] :max_results
|
1143
|
+
# The maximum number of objects that you want AWS Firewall Manager to
|
1144
|
+
# return for this request. If more objects are available, in the
|
1145
|
+
# response, AWS Firewall Manager provides a `NextToken` value that you
|
1146
|
+
# can use in a subsequent call to get the next batch of objects.
|
1147
|
+
#
|
1148
|
+
# If you don't specify this, AWS Firewall Manager returns all available
|
1149
|
+
# objects.
|
1150
|
+
#
|
1151
|
+
# @return [Types::ListProtocolsListsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1152
|
+
#
|
1153
|
+
# * {Types::ListProtocolsListsResponse#protocols_lists #protocols_lists} => Array<Types::ProtocolsListDataSummary>
|
1154
|
+
# * {Types::ListProtocolsListsResponse#next_token #next_token} => String
|
1155
|
+
#
|
1156
|
+
# @example Request syntax with placeholder values
|
1157
|
+
#
|
1158
|
+
# resp = client.list_protocols_lists({
|
1159
|
+
# default_lists: false,
|
1160
|
+
# next_token: "PaginationToken",
|
1161
|
+
# max_results: 1, # required
|
1162
|
+
# })
|
1163
|
+
#
|
1164
|
+
# @example Response structure
|
1165
|
+
#
|
1166
|
+
# resp.protocols_lists #=> Array
|
1167
|
+
# resp.protocols_lists[0].list_arn #=> String
|
1168
|
+
# resp.protocols_lists[0].list_id #=> String
|
1169
|
+
# resp.protocols_lists[0].list_name #=> String
|
1170
|
+
# resp.protocols_lists[0].protocols_list #=> Array
|
1171
|
+
# resp.protocols_lists[0].protocols_list[0] #=> String
|
1172
|
+
# resp.next_token #=> String
|
1173
|
+
#
|
1174
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/ListProtocolsLists AWS API Documentation
|
1175
|
+
#
|
1176
|
+
# @overload list_protocols_lists(params = {})
|
1177
|
+
# @param [Hash] params ({})
|
1178
|
+
def list_protocols_lists(params = {}, options = {})
|
1179
|
+
req = build_request(:list_protocols_lists, params)
|
1180
|
+
req.send_request(options)
|
1181
|
+
end
|
1182
|
+
|
830
1183
|
# Retrieves the list of tags for the specified AWS resource.
|
831
1184
|
#
|
832
1185
|
# @option params [required, String] :resource_arn
|
833
1186
|
# The Amazon Resource Name (ARN) of the resource to return tags for. The
|
834
|
-
# Firewall Manager
|
835
|
-
#
|
1187
|
+
# AWS Firewall Manager resources that support tagging are policies,
|
1188
|
+
# applications lists, and protocols lists.
|
836
1189
|
#
|
837
1190
|
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
838
1191
|
#
|
@@ -859,6 +1212,81 @@ module Aws::FMS
|
|
859
1212
|
req.send_request(options)
|
860
1213
|
end
|
861
1214
|
|
1215
|
+
# Creates an AWS Firewall Manager applications list.
|
1216
|
+
#
|
1217
|
+
# @option params [required, Types::AppsListData] :apps_list
|
1218
|
+
# The details of the AWS Firewall Manager applications list to be
|
1219
|
+
# created.
|
1220
|
+
#
|
1221
|
+
# @option params [Array<Types::Tag>] :tag_list
|
1222
|
+
# The tags associated with the resource.
|
1223
|
+
#
|
1224
|
+
# @return [Types::PutAppsListResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1225
|
+
#
|
1226
|
+
# * {Types::PutAppsListResponse#apps_list #apps_list} => Types::AppsListData
|
1227
|
+
# * {Types::PutAppsListResponse#apps_list_arn #apps_list_arn} => String
|
1228
|
+
#
|
1229
|
+
# @example Request syntax with placeholder values
|
1230
|
+
#
|
1231
|
+
# resp = client.put_apps_list({
|
1232
|
+
# apps_list: { # required
|
1233
|
+
# list_id: "ListId",
|
1234
|
+
# list_name: "ResourceName", # required
|
1235
|
+
# list_update_token: "UpdateToken",
|
1236
|
+
# create_time: Time.now,
|
1237
|
+
# last_update_time: Time.now,
|
1238
|
+
# apps_list: [ # required
|
1239
|
+
# {
|
1240
|
+
# app_name: "ResourceName", # required
|
1241
|
+
# protocol: "Protocol", # required
|
1242
|
+
# port: 1, # required
|
1243
|
+
# },
|
1244
|
+
# ],
|
1245
|
+
# previous_apps_list: {
|
1246
|
+
# "PreviousListVersion" => [
|
1247
|
+
# {
|
1248
|
+
# app_name: "ResourceName", # required
|
1249
|
+
# protocol: "Protocol", # required
|
1250
|
+
# port: 1, # required
|
1251
|
+
# },
|
1252
|
+
# ],
|
1253
|
+
# },
|
1254
|
+
# },
|
1255
|
+
# tag_list: [
|
1256
|
+
# {
|
1257
|
+
# key: "TagKey", # required
|
1258
|
+
# value: "TagValue", # required
|
1259
|
+
# },
|
1260
|
+
# ],
|
1261
|
+
# })
|
1262
|
+
#
|
1263
|
+
# @example Response structure
|
1264
|
+
#
|
1265
|
+
# resp.apps_list.list_id #=> String
|
1266
|
+
# resp.apps_list.list_name #=> String
|
1267
|
+
# resp.apps_list.list_update_token #=> String
|
1268
|
+
# resp.apps_list.create_time #=> Time
|
1269
|
+
# resp.apps_list.last_update_time #=> Time
|
1270
|
+
# resp.apps_list.apps_list #=> Array
|
1271
|
+
# resp.apps_list.apps_list[0].app_name #=> String
|
1272
|
+
# resp.apps_list.apps_list[0].protocol #=> String
|
1273
|
+
# resp.apps_list.apps_list[0].port #=> Integer
|
1274
|
+
# resp.apps_list.previous_apps_list #=> Hash
|
1275
|
+
# resp.apps_list.previous_apps_list["PreviousListVersion"] #=> Array
|
1276
|
+
# resp.apps_list.previous_apps_list["PreviousListVersion"][0].app_name #=> String
|
1277
|
+
# resp.apps_list.previous_apps_list["PreviousListVersion"][0].protocol #=> String
|
1278
|
+
# resp.apps_list.previous_apps_list["PreviousListVersion"][0].port #=> Integer
|
1279
|
+
# resp.apps_list_arn #=> String
|
1280
|
+
#
|
1281
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/PutAppsList AWS API Documentation
|
1282
|
+
#
|
1283
|
+
# @overload put_apps_list(params = {})
|
1284
|
+
# @param [Hash] params ({})
|
1285
|
+
def put_apps_list(params = {}, options = {})
|
1286
|
+
req = build_request(:put_apps_list, params)
|
1287
|
+
req.send_request(options)
|
1288
|
+
end
|
1289
|
+
|
862
1290
|
# Designates the IAM role and Amazon Simple Notification Service (SNS)
|
863
1291
|
# topic that AWS Firewall Manager uses to record SNS logs.
|
864
1292
|
#
|
@@ -995,12 +1423,70 @@ module Aws::FMS
|
|
995
1423
|
req.send_request(options)
|
996
1424
|
end
|
997
1425
|
|
1426
|
+
# Creates an AWS Firewall Manager protocols list.
|
1427
|
+
#
|
1428
|
+
# @option params [required, Types::ProtocolsListData] :protocols_list
|
1429
|
+
# The details of the AWS Firewall Manager protocols list to be created.
|
1430
|
+
#
|
1431
|
+
# @option params [Array<Types::Tag>] :tag_list
|
1432
|
+
# The tags associated with the resource.
|
1433
|
+
#
|
1434
|
+
# @return [Types::PutProtocolsListResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1435
|
+
#
|
1436
|
+
# * {Types::PutProtocolsListResponse#protocols_list #protocols_list} => Types::ProtocolsListData
|
1437
|
+
# * {Types::PutProtocolsListResponse#protocols_list_arn #protocols_list_arn} => String
|
1438
|
+
#
|
1439
|
+
# @example Request syntax with placeholder values
|
1440
|
+
#
|
1441
|
+
# resp = client.put_protocols_list({
|
1442
|
+
# protocols_list: { # required
|
1443
|
+
# list_id: "ListId",
|
1444
|
+
# list_name: "ResourceName", # required
|
1445
|
+
# list_update_token: "UpdateToken",
|
1446
|
+
# create_time: Time.now,
|
1447
|
+
# last_update_time: Time.now,
|
1448
|
+
# protocols_list: ["Protocol"], # required
|
1449
|
+
# previous_protocols_list: {
|
1450
|
+
# "PreviousListVersion" => ["Protocol"],
|
1451
|
+
# },
|
1452
|
+
# },
|
1453
|
+
# tag_list: [
|
1454
|
+
# {
|
1455
|
+
# key: "TagKey", # required
|
1456
|
+
# value: "TagValue", # required
|
1457
|
+
# },
|
1458
|
+
# ],
|
1459
|
+
# })
|
1460
|
+
#
|
1461
|
+
# @example Response structure
|
1462
|
+
#
|
1463
|
+
# resp.protocols_list.list_id #=> String
|
1464
|
+
# resp.protocols_list.list_name #=> String
|
1465
|
+
# resp.protocols_list.list_update_token #=> String
|
1466
|
+
# resp.protocols_list.create_time #=> Time
|
1467
|
+
# resp.protocols_list.last_update_time #=> Time
|
1468
|
+
# resp.protocols_list.protocols_list #=> Array
|
1469
|
+
# resp.protocols_list.protocols_list[0] #=> String
|
1470
|
+
# resp.protocols_list.previous_protocols_list #=> Hash
|
1471
|
+
# resp.protocols_list.previous_protocols_list["PreviousListVersion"] #=> Array
|
1472
|
+
# resp.protocols_list.previous_protocols_list["PreviousListVersion"][0] #=> String
|
1473
|
+
# resp.protocols_list_arn #=> String
|
1474
|
+
#
|
1475
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/PutProtocolsList AWS API Documentation
|
1476
|
+
#
|
1477
|
+
# @overload put_protocols_list(params = {})
|
1478
|
+
# @param [Hash] params ({})
|
1479
|
+
def put_protocols_list(params = {}, options = {})
|
1480
|
+
req = build_request(:put_protocols_list, params)
|
1481
|
+
req.send_request(options)
|
1482
|
+
end
|
1483
|
+
|
998
1484
|
# Adds one or more tags to an AWS resource.
|
999
1485
|
#
|
1000
1486
|
# @option params [required, String] :resource_arn
|
1001
|
-
# The Amazon Resource Name (ARN) of the resource. The
|
1002
|
-
#
|
1003
|
-
#
|
1487
|
+
# The Amazon Resource Name (ARN) of the resource to return tags for. The
|
1488
|
+
# AWS Firewall Manager resources that support tagging are policies,
|
1489
|
+
# applications lists, and protocols lists.
|
1004
1490
|
#
|
1005
1491
|
# @option params [required, Array<Types::Tag>] :tag_list
|
1006
1492
|
# The tags to add to the resource.
|
@@ -1031,9 +1517,9 @@ module Aws::FMS
|
|
1031
1517
|
# Removes one or more tags from an AWS resource.
|
1032
1518
|
#
|
1033
1519
|
# @option params [required, String] :resource_arn
|
1034
|
-
# The Amazon Resource Name (ARN) of the resource. The
|
1035
|
-
#
|
1036
|
-
#
|
1520
|
+
# The Amazon Resource Name (ARN) of the resource to return tags for. The
|
1521
|
+
# AWS Firewall Manager resources that support tagging are policies,
|
1522
|
+
# applications lists, and protocols lists.
|
1037
1523
|
#
|
1038
1524
|
# @option params [required, Array<String>] :tag_keys
|
1039
1525
|
# The keys of the tags to remove from the resource.
|
@@ -1069,7 +1555,7 @@ module Aws::FMS
|
|
1069
1555
|
params: params,
|
1070
1556
|
config: config)
|
1071
1557
|
context[:gem_name] = 'aws-sdk-fms'
|
1072
|
-
context[:gem_version] = '1.
|
1558
|
+
context[:gem_version] = '1.32.0'
|
1073
1559
|
Seahorse::Client::Request.new(handlers, context)
|
1074
1560
|
end
|
1075
1561
|
|