Class: Aws::FMS::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::FMS::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb
Overview
An API client for FMS. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::FMS::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#associate_admin_account(params = {}) ⇒ Struct
Sets a Firewall Manager default administrator account.
-
#associate_third_party_firewall(params = {}) ⇒ Types::AssociateThirdPartyFirewallResponse
Sets the Firewall Manager policy administrator as a tenant administrator of a third-party firewall service.
-
#batch_associate_resource(params = {}) ⇒ Types::BatchAssociateResourceResponse
Associate resources to a Firewall Manager resource set.
-
#batch_disassociate_resource(params = {}) ⇒ Types::BatchDisassociateResourceResponse
Disassociates resources from a Firewall Manager resource set.
-
#delete_apps_list(params = {}) ⇒ Struct
Permanently deletes an Firewall Manager applications list.
-
#delete_notification_channel(params = {}) ⇒ Struct
Deletes an Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS) topic that is used to record Firewall Manager SNS logs.
-
#delete_policy(params = {}) ⇒ Struct
Permanently deletes an Firewall Manager policy.
-
#delete_protocols_list(params = {}) ⇒ Struct
Permanently deletes an Firewall Manager protocols list.
-
#delete_resource_set(params = {}) ⇒ Struct
Deletes the specified ResourceSet.
-
#disassociate_admin_account(params = {}) ⇒ Struct
Disassociates an Firewall Manager administrator account.
-
#disassociate_third_party_firewall(params = {}) ⇒ Types::DisassociateThirdPartyFirewallResponse
Disassociates a Firewall Manager policy administrator from a third-party firewall tenant.
-
#get_admin_account(params = {}) ⇒ Types::GetAdminAccountResponse
Returns the Organizations account that is associated with Firewall Manager as the Firewall Manager default administrator.
-
#get_admin_scope(params = {}) ⇒ Types::GetAdminScopeResponse
Returns information about the specified account's administrative scope.
-
#get_apps_list(params = {}) ⇒ Types::GetAppsListResponse
Returns information about the specified Firewall Manager applications list.
-
#get_compliance_detail(params = {}) ⇒ Types::GetComplianceDetailResponse
Returns detailed compliance information about the specified member account.
-
#get_notification_channel(params = {}) ⇒ Types::GetNotificationChannelResponse
Information about the Amazon Simple Notification Service (SNS) topic that is used to record Firewall Manager SNS logs.
-
#get_policy(params = {}) ⇒ Types::GetPolicyResponse
Returns information about the specified Firewall Manager policy.
-
#get_protection_status(params = {}) ⇒ Types::GetProtectionStatusResponse
If you created a Shield Advanced policy, returns policy-level attack summary information in the event of a potential DDoS attack.
-
#get_protocols_list(params = {}) ⇒ Types::GetProtocolsListResponse
Returns information about the specified Firewall Manager protocols list.
-
#get_resource_set(params = {}) ⇒ Types::GetResourceSetResponse
Gets information about a specific resource set.
-
#get_third_party_firewall_association_status(params = {}) ⇒ Types::GetThirdPartyFirewallAssociationStatusResponse
The onboarding status of a Firewall Manager admin account to third-party firewall vendor tenant.
-
#get_violation_details(params = {}) ⇒ Types::GetViolationDetailsResponse
Retrieves violations for a resource based on the specified Firewall Manager policy and Amazon Web Services account.
-
#list_admin_accounts_for_organization(params = {}) ⇒ Types::ListAdminAccountsForOrganizationResponse
Returns a
AdminAccounts
object that lists the Firewall Manager administrators within the organization that are onboarded to Firewall Manager by AssociateAdminAccount. -
#list_admins_managing_account(params = {}) ⇒ Types::ListAdminsManagingAccountResponse
Lists the accounts that are managing the specified Organizations member account.
-
#list_apps_lists(params = {}) ⇒ Types::ListAppsListsResponse
Returns an array of
AppsListDataSummary
objects. -
#list_compliance_status(params = {}) ⇒ Types::ListComplianceStatusResponse
Returns an array of
PolicyComplianceStatus
objects. -
#list_discovered_resources(params = {}) ⇒ Types::ListDiscoveredResourcesResponse
Returns an array of resources in the organization's accounts that are available to be associated with a resource set.
-
#list_member_accounts(params = {}) ⇒ Types::ListMemberAccountsResponse
Returns a
MemberAccounts
object that lists the member accounts in the administrator's Amazon Web Services organization. -
#list_policies(params = {}) ⇒ Types::ListPoliciesResponse
Returns an array of
PolicySummary
objects. -
#list_protocols_lists(params = {}) ⇒ Types::ListProtocolsListsResponse
Returns an array of
ProtocolsListDataSummary
objects. -
#list_resource_set_resources(params = {}) ⇒ Types::ListResourceSetResourcesResponse
Returns an array of resources that are currently associated to a resource set.
-
#list_resource_sets(params = {}) ⇒ Types::ListResourceSetsResponse
Returns an array of
ResourceSetSummary
objects. -
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Retrieves the list of tags for the specified Amazon Web Services resource.
-
#list_third_party_firewall_firewall_policies(params = {}) ⇒ Types::ListThirdPartyFirewallFirewallPoliciesResponse
Retrieves a list of all of the third-party firewall policies that are associated with the third-party firewall administrator's account.
-
#put_admin_account(params = {}) ⇒ Struct
Creates or updates an Firewall Manager administrator account.
-
#put_apps_list(params = {}) ⇒ Types::PutAppsListResponse
Creates an Firewall Manager applications list.
-
#put_notification_channel(params = {}) ⇒ Struct
Designates the IAM role and Amazon Simple Notification Service (SNS) topic that Firewall Manager uses to record SNS logs.
-
#put_policy(params = {}) ⇒ Types::PutPolicyResponse
Creates an Firewall Manager policy.
-
#put_protocols_list(params = {}) ⇒ Types::PutProtocolsListResponse
Creates an Firewall Manager protocols list.
-
#put_resource_set(params = {}) ⇒ Types::PutResourceSetResponse
Creates the resource set.
-
#tag_resource(params = {}) ⇒ Struct
Adds one or more tags to an Amazon Web Services resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from an Amazon Web Services resource.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
395 396 397 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 395 def initialize(*args) super end |
Instance Method Details
#associate_admin_account(params = {}) ⇒ Struct
Sets a Firewall Manager default administrator account. The Firewall Manager default administrator account can manage third-party firewalls and has full administrative scope that allows administration of all policy types, accounts, organizational units, and Regions. This account must be a member account of the organization in Organizations whose resources you want to protect.
For information about working with Firewall Manager administrator accounts, see Managing Firewall Manager administrators in the Firewall Manager Developer Guide.
440 441 442 443 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 440 def associate_admin_account(params = {}, = {}) req = build_request(:associate_admin_account, params) req.send_request() end |
#associate_third_party_firewall(params = {}) ⇒ Types::AssociateThirdPartyFirewallResponse
Sets the Firewall Manager policy administrator as a tenant administrator of a third-party firewall service. A tenant is an instance of the third-party firewall service that's associated with your Amazon Web Services customer account.
471 472 473 474 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 471 def associate_third_party_firewall(params = {}, = {}) req = build_request(:associate_third_party_firewall, params) req.send_request() end |
#batch_associate_resource(params = {}) ⇒ Types::BatchAssociateResourceResponse
Associate resources to a Firewall Manager resource set.
510 511 512 513 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 510 def batch_associate_resource(params = {}, = {}) req = build_request(:batch_associate_resource, params) req.send_request() end |
#batch_disassociate_resource(params = {}) ⇒ Types::BatchDisassociateResourceResponse
Disassociates resources from a Firewall Manager resource set.
549 550 551 552 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 549 def batch_disassociate_resource(params = {}, = {}) req = build_request(:batch_disassociate_resource, params) req.send_request() end |
#delete_apps_list(params = {}) ⇒ Struct
Permanently deletes an Firewall Manager applications list.
573 574 575 576 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 573 def delete_apps_list(params = {}, = {}) req = build_request(:delete_apps_list, params) req.send_request() end |
#delete_notification_channel(params = {}) ⇒ Struct
Deletes an Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS) topic that is used to record Firewall Manager SNS logs.
588 589 590 591 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 588 def delete_notification_channel(params = {}, = {}) req = build_request(:delete_notification_channel, params) req.send_request() end |
#delete_policy(params = {}) ⇒ Struct
Permanently deletes an Firewall Manager policy.
641 642 643 644 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 641 def delete_policy(params = {}, = {}) req = build_request(:delete_policy, params) req.send_request() end |
#delete_protocols_list(params = {}) ⇒ Struct
Permanently deletes an Firewall Manager protocols list.
665 666 667 668 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 665 def delete_protocols_list(params = {}, = {}) req = build_request(:delete_protocols_list, params) req.send_request() end |
#delete_resource_set(params = {}) ⇒ Struct
Deletes the specified ResourceSet.
688 689 690 691 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 688 def delete_resource_set(params = {}, = {}) req = build_request(:delete_resource_set, params) req.send_request() end |
#disassociate_admin_account(params = {}) ⇒ Struct
Disassociates an Firewall Manager administrator account. To set a different account as an Firewall Manager administrator, submit a PutAdminAccount request. To set an account as a default administrator account, you must submit an AssociateAdminAccount request.
Disassociation of the default administrator account follows the first in, last out principle. If you are the default administrator, all Firewall Manager administrators within the organization must first disassociate their accounts before you can disassociate your account.
709 710 711 712 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 709 def disassociate_admin_account(params = {}, = {}) req = build_request(:disassociate_admin_account, params) req.send_request() end |
#disassociate_third_party_firewall(params = {}) ⇒ Types::DisassociateThirdPartyFirewallResponse
Disassociates a Firewall Manager policy administrator from a
third-party firewall tenant. When you call
DisassociateThirdPartyFirewall
, the third-party firewall vendor
deletes all of the firewalls that are associated with the account.
740 741 742 743 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 740 def disassociate_third_party_firewall(params = {}, = {}) req = build_request(:disassociate_third_party_firewall, params) req.send_request() end |
#get_admin_account(params = {}) ⇒ Types::GetAdminAccountResponse
Returns the Organizations account that is associated with Firewall Manager as the Firewall Manager default administrator.
762 763 764 765 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 762 def get_admin_account(params = {}, = {}) req = build_request(:get_admin_account, params) req.send_request() end |
#get_admin_scope(params = {}) ⇒ Types::GetAdminScopeResponse
Returns information about the specified account's administrative scope. The admistrative scope defines the resources that an Firewall Manager administrator can manage.
807 808 809 810 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 807 def get_admin_scope(params = {}, = {}) req = build_request(:get_admin_scope, params) req.send_request() end |
#get_apps_list(params = {}) ⇒ Types::GetAppsListResponse
Returns information about the specified Firewall Manager applications list.
857 858 859 860 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 857 def get_apps_list(params = {}, = {}) req = build_request(:get_apps_list, params) req.send_request() end |
#get_compliance_detail(params = {}) ⇒ Types::GetComplianceDetailResponse
Returns detailed compliance information about the specified member account. Details include resources that are in and out of compliance with the specified policy.
Resources are considered noncompliant for WAF and Shield Advanced policies if the specified policy has not been applied to them.
Resources are considered noncompliant for security group policies if they are in scope of the policy, they violate one or more of the policy rules, and remediation is disabled or not possible.
Resources are considered noncompliant for Network Firewall policies if a firewall is missing in the VPC, if the firewall endpoint isn't set up in an expected Availability Zone and subnet, if a subnet created by the Firewall Manager doesn't have the expected route table, and for modifications to a firewall policy that violate the Firewall Manager policy's rules.
Resources are considered noncompliant for DNS Firewall policies if a DNS Firewall rule group is missing from the rule group associations for the VPC.
923 924 925 926 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 923 def get_compliance_detail(params = {}, = {}) req = build_request(:get_compliance_detail, params) req.send_request() end |
#get_notification_channel(params = {}) ⇒ Types::GetNotificationChannelResponse
Information about the Amazon Simple Notification Service (SNS) topic that is used to record Firewall Manager SNS logs.
945 946 947 948 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 945 def get_notification_channel(params = {}, = {}) req = build_request(:get_notification_channel, params) req.send_request() end |
#get_policy(params = {}) ⇒ Types::GetPolicyResponse
Returns information about the specified Firewall Manager policy.
1000 1001 1002 1003 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 1000 def get_policy(params = {}, = {}) req = build_request(:get_policy, params) req.send_request() end |
#get_protection_status(params = {}) ⇒ Types::GetProtectionStatusResponse
If you created a Shield Advanced policy, returns policy-level attack summary information in the event of a potential DDoS attack. Other policy types are currently unsupported.
1072 1073 1074 1075 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 1072 def get_protection_status(params = {}, = {}) req = build_request(:get_protection_status, params) req.send_request() end |
#get_protocols_list(params = {}) ⇒ Types::GetProtocolsListResponse
Returns information about the specified Firewall Manager protocols list.
1118 1119 1120 1121 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 1118 def get_protocols_list(params = {}, = {}) req = build_request(:get_protocols_list, params) req.send_request() end |
#get_resource_set(params = {}) ⇒ Types::GetResourceSetResponse
Gets information about a specific resource set.
1156 1157 1158 1159 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 1156 def get_resource_set(params = {}, = {}) req = build_request(:get_resource_set, params) req.send_request() end |
#get_third_party_firewall_association_status(params = {}) ⇒ Types::GetThirdPartyFirewallAssociationStatusResponse
The onboarding status of a Firewall Manager admin account to third-party firewall vendor tenant.
1187 1188 1189 1190 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 1187 def get_third_party_firewall_association_status(params = {}, = {}) req = build_request(:get_third_party_firewall_association_status, params) req.send_request() end |
#get_violation_details(params = {}) ⇒ Types::GetViolationDetailsResponse
Retrieves violations for a resource based on the specified Firewall Manager policy and Amazon Web Services account.
1552 1553 1554 1555 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 1552 def get_violation_details(params = {}, = {}) req = build_request(:get_violation_details, params) req.send_request() end |
#list_admin_accounts_for_organization(params = {}) ⇒ Types::ListAdminAccountsForOrganizationResponse
Returns a AdminAccounts
object that lists the Firewall Manager
administrators within the organization that are onboarded to Firewall
Manager by AssociateAdminAccount.
This operation can be called only from the organization's management account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1603 1604 1605 1606 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 1603 def list_admin_accounts_for_organization(params = {}, = {}) req = build_request(:list_admin_accounts_for_organization, params) req.send_request() end |
#list_admins_managing_account(params = {}) ⇒ Types::ListAdminsManagingAccountResponse
Lists the accounts that are managing the specified Organizations member account. This is useful for any member account so that they can view the accounts who are managing their account. This operation only returns the managing administrators that have the requested account within their AdminScope.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1651 1652 1653 1654 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 1651 def list_admins_managing_account(params = {}, = {}) req = build_request(:list_admins_managing_account, params) req.send_request() end |
#list_apps_lists(params = {}) ⇒ Types::ListAppsListsResponse
Returns an array of AppsListDataSummary
objects.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1709 1710 1711 1712 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 1709 def list_apps_lists(params = {}, = {}) req = build_request(:list_apps_lists, params) req.send_request() end |
#list_compliance_status(params = {}) ⇒ Types::ListComplianceStatusResponse
Returns an array of PolicyComplianceStatus
objects. Use
PolicyComplianceStatus
to get a summary of which member accounts are
protected by the specified policy.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1773 1774 1775 1776 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 1773 def list_compliance_status(params = {}, = {}) req = build_request(:list_compliance_status, params) req.send_request() end |
#list_discovered_resources(params = {}) ⇒ Types::ListDiscoveredResourcesResponse
Returns an array of resources in the organization's accounts that are available to be associated with a resource set.
1829 1830 1831 1832 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 1829 def list_discovered_resources(params = {}, = {}) req = build_request(:list_discovered_resources, params) req.send_request() end |
#list_member_accounts(params = {}) ⇒ Types::ListMemberAccountsResponse
Returns a MemberAccounts
object that lists the member accounts in
the administrator's Amazon Web Services organization.
Either an Firewall Manager administrator or the organization's management account can make this request.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1880 1881 1882 1883 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 1880 def list_member_accounts(params = {}, = {}) req = build_request(:list_member_accounts, params) req.send_request() end |
#list_policies(params = {}) ⇒ Types::ListPoliciesResponse
Returns an array of PolicySummary
objects.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1934 1935 1936 1937 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 1934 def list_policies(params = {}, = {}) req = build_request(:list_policies, params) req.send_request() end |
#list_protocols_lists(params = {}) ⇒ Types::ListProtocolsListsResponse
Returns an array of ProtocolsListDataSummary
objects.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1990 1991 1992 1993 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 1990 def list_protocols_lists(params = {}, = {}) req = build_request(:list_protocols_lists, params) req.send_request() end |
#list_resource_set_resources(params = {}) ⇒ Types::ListResourceSetResourcesResponse
Returns an array of resources that are currently associated to a resource set.
2039 2040 2041 2042 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 2039 def list_resource_set_resources(params = {}, = {}) req = build_request(:list_resource_set_resources, params) req.send_request() end |
#list_resource_sets(params = {}) ⇒ Types::ListResourceSetsResponse
Returns an array of ResourceSetSummary
objects.
2085 2086 2087 2088 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 2085 def list_resource_sets(params = {}, = {}) req = build_request(:list_resource_sets, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Retrieves the list of tags for the specified Amazon Web Services resource.
2118 2119 2120 2121 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 2118 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#list_third_party_firewall_firewall_policies(params = {}) ⇒ Types::ListThirdPartyFirewallFirewallPoliciesResponse
Retrieves a list of all of the third-party firewall policies that are associated with the third-party firewall administrator's account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2175 2176 2177 2178 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 2175 def list_third_party_firewall_firewall_policies(params = {}, = {}) req = build_request(:list_third_party_firewall_firewall_policies, params) req.send_request() end |
#put_admin_account(params = {}) ⇒ Struct
Creates or updates an Firewall Manager administrator account. The account must be a member of the organization that was onboarded to Firewall Manager by AssociateAdminAccount. Only the organization's management account can create an Firewall Manager administrator account. When you create an Firewall Manager administrator account, the service checks to see if the account is already a delegated administrator within Organizations. If the account isn't a delegated administrator, Firewall Manager calls Organizations to delegate the account within Organizations. For more information about administrator accounts within Organizations, see Managing the Amazon Web Services Accounts in Your Organization.
2246 2247 2248 2249 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 2246 def put_admin_account(params = {}, = {}) req = build_request(:put_admin_account, params) req.send_request() end |
#put_apps_list(params = {}) ⇒ Types::PutAppsListResponse
Creates an Firewall Manager applications list.
2320 2321 2322 2323 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 2320 def put_apps_list(params = {}, = {}) req = build_request(:put_apps_list, params) req.send_request() end |
#put_notification_channel(params = {}) ⇒ Struct
Designates the IAM role and Amazon Simple Notification Service (SNS) topic that Firewall Manager uses to record SNS logs.
To perform this action outside of the console, you must first
configure the SNS topic's access policy to allow the SnsRoleName
to
publish SNS logs. If the SnsRoleName
provided is a role other than
the AWSServiceRoleForFMS
service-linked role, this role must have a
trust relationship configured to allow the Firewall Manager service
principal fms.amazonaws.com
to assume this role. For information
about configuring an SNS access policy, see Service roles for
Firewall Manager in the Firewall Manager Developer Guide.
2362 2363 2364 2365 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 2362 def put_notification_channel(params = {}, = {}) req = build_request(:put_notification_channel, params) req.send_request() end |
#put_policy(params = {}) ⇒ Types::PutPolicyResponse
Creates an Firewall Manager policy.
Firewall Manager provides the following types of policies:
An WAF policy (type WAFV2), which defines rule groups to run first in the corresponding WAF web ACL and rule groups to run last in the web ACL.
An WAF Classic policy (type WAF), which defines a rule group.
A Shield Advanced policy, which applies Shield Advanced protection to specified accounts and resources.
A security group policy, which manages VPC security groups across your Amazon Web Services organization.
An Network Firewall policy, which provides firewall rules to filter network traffic in specified Amazon VPCs.
A DNS Firewall policy, which provides RouteĀ 53 Resolver DNS Firewall rules to filter DNS queries for specified VPCs.
Each policy is specific to one of the types. If you want to enforce more than one policy type across accounts, create multiple policies. You can create multiple policies for each type.
You must be subscribed to Shield Advanced to create a Shield Advanced policy. For more information about subscribing to Shield Advanced, see CreateSubscription.
2494 2495 2496 2497 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 2494 def put_policy(params = {}, = {}) req = build_request(:put_policy, params) req.send_request() end |
#put_protocols_list(params = {}) ⇒ Types::PutProtocolsListResponse
Creates an Firewall Manager protocols list.
2552 2553 2554 2555 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 2552 def put_protocols_list(params = {}, = {}) req = build_request(:put_protocols_list, params) req.send_request() end |
#put_resource_set(params = {}) ⇒ Types::PutResourceSetResponse
Creates the resource set.
An Firewall Manager resource set defines the resources to import into an Firewall Manager policy from another Amazon Web Services service.
2614 2615 2616 2617 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 2614 def put_resource_set(params = {}, = {}) req = build_request(:put_resource_set, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds one or more tags to an Amazon Web Services resource.
2647 2648 2649 2650 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 2647 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from an Amazon Web Services resource.
2675 2676 2677 2678 |
# File 'gems/aws-sdk-fms/lib/aws-sdk-fms/client.rb', line 2675 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |