FMS *** Client ====== class FMS.Client A low-level client representing Firewall Management Service (FMS) This is the *Firewall Manager API Reference*. This guide is for developers who need detailed information about the Firewall Manager API actions, data types, and errors. For detailed information about Firewall Manager features, see the Firewall Manager Developer Guide. Some API actions require explicit resource permissions. For information, see the developer guide topic Service roles for Firewall Manager. import boto3 client = boto3.client('fms') These are the available methods: * associate_admin_account * associate_third_party_firewall * batch_associate_resource * batch_disassociate_resource * can_paginate * close * delete_apps_list * delete_notification_channel * delete_policy * delete_protocols_list * delete_resource_set * disassociate_admin_account * disassociate_third_party_firewall * get_admin_account * get_admin_scope * get_apps_list * get_compliance_detail * get_notification_channel * get_paginator * get_policy * get_protection_status * get_protocols_list * get_resource_set * get_third_party_firewall_association_status * get_violation_details * get_waiter * list_admin_accounts_for_organization * list_admins_managing_account * list_apps_lists * list_compliance_status * list_discovered_resources * list_member_accounts * list_policies * list_protocols_lists * list_resource_set_resources * list_resource_sets * list_tags_for_resource * list_third_party_firewall_firewall_policies * put_admin_account * put_apps_list * put_notification_channel * put_policy * put_protocols_list * put_resource_set * tag_resource * untag_resource Paginators ========== Paginators are available on a client instance via the "get_paginator" method. For more detailed instructions and examples on the usage of paginators, see the paginators user guide. The available paginators are: * ListAdminAccountsForOrganization * ListAdminsManagingAccount * ListAppsLists * ListComplianceStatus * ListMemberAccounts * ListPolicies * ListProtocolsLists * ListThirdPartyFirewallFirewallPolicies FMS / Paginator / ListPolicies ListPolicies ************ class FMS.Paginator.ListPolicies paginator = client.get_paginator('list_policies') paginate(**kwargs) Creates an iterator that will paginate through responses from "FMS.Client.list_policies()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max- items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'PolicyList': [ { 'PolicyArn': 'string', 'PolicyId': 'string', 'PolicyName': 'string', 'ResourceType': 'string', 'SecurityServiceType': 'WAF'|'WAFV2'|'SHIELD_ADVANCED'|'SECURITY_GROUPS_COMMON'|'SECURITY_GROUPS_CONTENT_AUDIT'|'SECURITY_GROUPS_USAGE_AUDIT'|'NETWORK_FIREWALL'|'DNS_FIREWALL'|'THIRD_PARTY_FIREWALL'|'IMPORT_NETWORK_FIREWALL'|'NETWORK_ACL_COMMON', 'RemediationEnabled': True|False, 'DeleteUnusedFMManagedResources': True|False, 'PolicyStatus': 'ACTIVE'|'OUT_OF_ADMIN_SCOPE' }, ], } **Response Structure** * *(dict) --* * **PolicyList** *(list) --* An array of "PolicySummary" objects. * *(dict) --* Details of the Firewall Manager policy. * **PolicyArn** *(string) --* The Amazon Resource Name (ARN) of the specified policy. * **PolicyId** *(string) --* The ID of the specified policy. * **PolicyName** *(string) --* The name of the specified policy. * **ResourceType** *(string) --* The type of resource protected by or in scope of the policy. This is in the format shown in the Amazon Web Services Resource Types Reference. * **SecurityServiceType** *(string) --* The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an WAF policy, a Shield Advanced policy, or a security group policy. * **RemediationEnabled** *(boolean) --* Indicates if the policy should be automatically applied to new resources. * **DeleteUnusedFMManagedResources** *(boolean) --* Indicates whether Firewall Manager should automatically remove protections from resources that leave the policy scope and clean up resources that Firewall Manager is managing for accounts when those accounts leave policy scope. For example, Firewall Manager will disassociate a Firewall Manager managed web ACL from a protected customer resource when the customer resource leaves policy scope. By default, Firewall Manager doesn't remove protections or delete Firewall Manager managed resources. This option is not available for Shield Advanced or WAF Classic policies. * **PolicyStatus** *(string) --* Indicates whether the policy is in or out of an admin's policy or Region scope. * "ACTIVE" - The administrator can manage and delete the policy. * "OUT_OF_ADMIN_SCOPE" - The administrator can view the policy, but they can't edit or delete the policy. Existing policy protections stay in place. Any new resources that come into scope of the policy won't be protected. FMS / Paginator / ListAdminAccountsForOrganization ListAdminAccountsForOrganization ******************************** class FMS.Paginator.ListAdminAccountsForOrganization paginator = client.get_paginator('list_admin_accounts_for_organization') paginate(**kwargs) Creates an iterator that will paginate through responses from "FMS.Client.list_admin_accounts_for_organization()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max- items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'AdminAccounts': [ { 'AdminAccount': 'string', 'DefaultAdmin': True|False, 'Status': 'ONBOARDING'|'ONBOARDING_COMPLETE'|'OFFBOARDING'|'OFFBOARDING_COMPLETE' }, ], } **Response Structure** * *(dict) --* * **AdminAccounts** *(list) --* A list of Firewall Manager administrator accounts within the organization that were onboarded as administrators by AssociateAdminAccount or PutAdminAccount. * *(dict) --* Contains high level information about the Firewall Manager administrator account. * **AdminAccount** *(string) --* The Amazon Web Services account ID of the Firewall Manager administrator's account. * **DefaultAdmin** *(boolean) --* A boolean value that indicates if the administrator is the default administrator. If true, then this is the default administrator account. The default administrator can manage third-party firewalls and has full administrative scope. There is only one default administrator account per organization. For information about Firewall Manager default administrator accounts, see Managing Firewall Manager administrators in the *Firewall Manager Developer Guide*. * **Status** *(string) --* The current status of the request to onboard a member account as an Firewall Manager administrator. * "ONBOARDING" - The account is onboarding to Firewall Manager as an administrator. * "ONBOARDING_COMPLETE" - Firewall Manager The account is onboarded to Firewall Manager as an administrator, and can perform actions on the resources defined in their AdminScope. * "OFFBOARDING" - The account is being removed as an Firewall Manager administrator. * "OFFBOARDING_COMPLETE" - The account has been removed as an Firewall Manager administrator. FMS / Paginator / ListThirdPartyFirewallFirewallPolicies ListThirdPartyFirewallFirewallPolicies ************************************** class FMS.Paginator.ListThirdPartyFirewallFirewallPolicies paginator = client.get_paginator('list_third_party_firewall_firewall_policies') paginate(**kwargs) Creates an iterator that will paginate through responses from "FMS.Client.list_third_party_firewall_firewall_policies()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( ThirdPartyFirewall='PALO_ALTO_NETWORKS_CLOUD_NGFW'|'FORTIGATE_CLOUD_NATIVE_FIREWALL', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **ThirdPartyFirewall** (*string*) -- **[REQUIRED]** The name of the third-party firewall vendor. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'ThirdPartyFirewallFirewallPolicies': [ { 'FirewallPolicyId': 'string', 'FirewallPolicyName': 'string' }, ], } **Response Structure** * *(dict) --* * **ThirdPartyFirewallFirewallPolicies** *(list) --* A list that contains one "ThirdPartyFirewallFirewallPolicies" element for each third-party firewall policies that the specified third- party firewall vendor is associated with. Each "ThirdPartyFirewallFirewallPolicies" element contains the firewall policy name and ID. * *(dict) --* Configures the third-party firewall's firewall policy. * **FirewallPolicyId** *(string) --* The ID of the specified firewall policy. * **FirewallPolicyName** *(string) --* The name of the specified firewall policy. FMS / Paginator / ListAppsLists ListAppsLists ************* class FMS.Paginator.ListAppsLists paginator = client.get_paginator('list_apps_lists') paginate(**kwargs) Creates an iterator that will paginate through responses from "FMS.Client.list_apps_lists()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( DefaultLists=True|False, PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **DefaultLists** (*boolean*) -- Specifies whether the lists to retrieve are default lists owned by Firewall Manager. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'AppsLists': [ { 'ListArn': 'string', 'ListId': 'string', 'ListName': 'string', 'AppsList': [ { 'AppName': 'string', 'Protocol': 'string', 'Port': 123 }, ] }, ], } **Response Structure** * *(dict) --* * **AppsLists** *(list) --* An array of "AppsListDataSummary" objects. * *(dict) --* Details of the Firewall Manager applications list. * **ListArn** *(string) --* The Amazon Resource Name (ARN) of the applications list. * **ListId** *(string) --* The ID of the applications list. * **ListName** *(string) --* The name of the applications list. * **AppsList** *(list) --* An array of "App" objects in the Firewall Manager applications list. * *(dict) --* An individual Firewall Manager application. * **AppName** *(string) --* The application's name. * **Protocol** *(string) --* The IP protocol name or number. The name can be one of "tcp", "udp", or "icmp". For information on possible numbers, see Protocol Numbers. * **Port** *(integer) --* The application's port number, for example "80". FMS / Paginator / ListMemberAccounts ListMemberAccounts ****************** class FMS.Paginator.ListMemberAccounts paginator = client.get_paginator('list_member_accounts') paginate(**kwargs) Creates an iterator that will paginate through responses from "FMS.Client.list_member_accounts()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max- items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'MemberAccounts': [ 'string', ], } **Response Structure** * *(dict) --* * **MemberAccounts** *(list) --* An array of account IDs. * *(string) --* FMS / Paginator / ListProtocolsLists ListProtocolsLists ****************** class FMS.Paginator.ListProtocolsLists paginator = client.get_paginator('list_protocols_lists') paginate(**kwargs) Creates an iterator that will paginate through responses from "FMS.Client.list_protocols_lists()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( DefaultLists=True|False, PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **DefaultLists** (*boolean*) -- Specifies whether the lists to retrieve are default lists owned by Firewall Manager. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'ProtocolsLists': [ { 'ListArn': 'string', 'ListId': 'string', 'ListName': 'string', 'ProtocolsList': [ 'string', ] }, ], } **Response Structure** * *(dict) --* * **ProtocolsLists** *(list) --* An array of "ProtocolsListDataSummary" objects. * *(dict) --* Details of the Firewall Manager protocols list. * **ListArn** *(string) --* The Amazon Resource Name (ARN) of the specified protocols list. * **ListId** *(string) --* The ID of the specified protocols list. * **ListName** *(string) --* The name of the specified protocols list. * **ProtocolsList** *(list) --* An array of protocols in the Firewall Manager protocols list. * *(string) --* FMS / Paginator / ListAdminsManagingAccount ListAdminsManagingAccount ************************* class FMS.Paginator.ListAdminsManagingAccount paginator = client.get_paginator('list_admins_managing_account') paginate(**kwargs) Creates an iterator that will paginate through responses from "FMS.Client.list_admins_managing_account()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max- items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'AdminAccounts': [ 'string', ], } **Response Structure** * *(dict) --* * **AdminAccounts** *(list) --* The list of accounts who manage member accounts within their AdminScope. * *(string) --* FMS / Paginator / ListComplianceStatus ListComplianceStatus ******************** class FMS.Paginator.ListComplianceStatus paginator = client.get_paginator('list_compliance_status') paginate(**kwargs) Creates an iterator that will paginate through responses from "FMS.Client.list_compliance_status()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PolicyId='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **PolicyId** (*string*) -- **[REQUIRED]** The ID of the Firewall Manager policy that you want the details for. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'PolicyComplianceStatusList': [ { 'PolicyOwner': 'string', 'PolicyId': 'string', 'PolicyName': 'string', 'MemberAccount': 'string', 'EvaluationResults': [ { 'ComplianceStatus': 'COMPLIANT'|'NON_COMPLIANT', 'ViolatorCount': 123, 'EvaluationLimitExceeded': True|False }, ], 'LastUpdated': datetime(2015, 1, 1), 'IssueInfoMap': { 'string': 'string' } }, ], } **Response Structure** * *(dict) --* * **PolicyComplianceStatusList** *(list) --* An array of "PolicyComplianceStatus" objects. * *(dict) --* Indicates whether the account is compliant with the specified policy. An account is considered noncompliant if it includes resources that are not protected by the policy, for WAF and Shield Advanced policies, or that are noncompliant with the policy, for security group policies. * **PolicyOwner** *(string) --* The Amazon Web Services account that created the Firewall Manager policy. * **PolicyId** *(string) --* The ID of the Firewall Manager policy. * **PolicyName** *(string) --* The name of the Firewall Manager policy. * **MemberAccount** *(string) --* The member account ID. * **EvaluationResults** *(list) --* An array of "EvaluationResult" objects. * *(dict) --* Describes the compliance status for the account. An account is considered noncompliant if it includes resources that are not protected by the specified policy or that don't comply with the policy. * **ComplianceStatus** *(string) --* Describes an Amazon Web Services account's compliance with the Firewall Manager policy. * **ViolatorCount** *(integer) --* The number of resources that are noncompliant with the specified policy. For WAF and Shield Advanced policies, a resource is considered noncompliant if it is not associated with the policy. For security group policies, a resource is considered noncompliant if it doesn't comply with the rules of the policy and remediation is disabled or not possible. * **EvaluationLimitExceeded** *(boolean) --* Indicates that over 100 resources are noncompliant with the Firewall Manager policy. * **LastUpdated** *(datetime) --* Timestamp of the last update to the "EvaluationResult" objects. * **IssueInfoMap** *(dict) --* Details about problems with dependent services, such as WAF or Config, and the error message received that indicates the problem with the service. * *(string) --* * *(string) --* FMS / Client / list_admins_managing_account list_admins_managing_account **************************** FMS.Client.list_admins_managing_account(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.list_admins_managing_account( NextToken='string', MaxResults=123 ) Parameters: * **NextToken** (*string*) -- When you request a list of objects with a "MaxResults" setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a "NextToken" value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. * **MaxResults** (*integer*) -- The maximum number of objects that you want Firewall Manager to return for this request. If more objects are available, in the response, Firewall Manager provides a "NextToken" value that you can use in a subsequent call to get the next batch of objects. Return type: dict Returns: **Response Syntax** { 'AdminAccounts': [ 'string', ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **AdminAccounts** *(list) --* The list of accounts who manage member accounts within their AdminScope. * *(string) --* * **NextToken** *(string) --* When you request a list of objects with a "MaxResults" setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a "NextToken" value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / put_policy put_policy ********** FMS.Client.put_policy(**kwargs) Creates an Firewall Manager policy. A Firewall Manager policy is specific to the individual policy type. If you want to enforce multiple policy types across accounts, you can create multiple policies. You can create more than one policy for each type. If you add a new account to an organization that you created with Organizations, Firewall Manager automatically applies the policy to the resources in that account that are within scope of the policy. Firewall Manager provides the following types of policies: * **WAF policy** - This policy applies WAF web ACL protections to specified accounts and resources. * **Shield Advanced policy** - This policy applies Shield Advanced protection to specified accounts and resources. * **Security Groups policy** - This type of policy gives you control over security groups that are in use throughout your organization in Organizations and lets you enforce a baseline set of rules across your organization. * **Network ACL policy** - This type of policy gives you control over the network ACLs that are in use throughout your organization in Organizations and lets you enforce a baseline set of first and last network ACL rules across your organization. * **Network Firewall policy** - This policy applies Network Firewall protection to your organization's VPCs. * **DNS Firewall policy** - This policy applies Amazon Route 53 Resolver DNS Firewall protections to your organization's VPCs. * **Third-party firewall policy** - This policy applies third-party firewall protections. Third-party firewalls are available by subscription through the Amazon Web Services Marketplace console at Amazon Web Services Marketplace. * **Palo Alto Networks Cloud NGFW policy** - This policy applies Palo Alto Networks Cloud Next Generation Firewall (NGFW) protections and Palo Alto Networks Cloud NGFW rulestacks to your organization's VPCs. * **Fortigate CNF policy** - This policy applies Fortigate Cloud Native Firewall (CNF) protections. Fortigate CNF is a cloud- centered solution that blocks Zero-Day threats and secures cloud infrastructures with industry-leading advanced threat prevention, smart web application firewalls (WAF), and API protection. See also: AWS API Documentation **Request Syntax** response = client.put_policy( Policy={ 'PolicyId': 'string', 'PolicyName': 'string', 'PolicyUpdateToken': 'string', 'SecurityServicePolicyData': { 'Type': 'WAF'|'WAFV2'|'SHIELD_ADVANCED'|'SECURITY_GROUPS_COMMON'|'SECURITY_GROUPS_CONTENT_AUDIT'|'SECURITY_GROUPS_USAGE_AUDIT'|'NETWORK_FIREWALL'|'DNS_FIREWALL'|'THIRD_PARTY_FIREWALL'|'IMPORT_NETWORK_FIREWALL'|'NETWORK_ACL_COMMON', 'ManagedServiceData': 'string', 'PolicyOption': { 'NetworkFirewallPolicy': { 'FirewallDeploymentModel': 'CENTRALIZED'|'DISTRIBUTED' }, 'ThirdPartyFirewallPolicy': { 'FirewallDeploymentModel': 'CENTRALIZED'|'DISTRIBUTED' }, 'NetworkAclCommonPolicy': { 'NetworkAclEntrySet': { 'FirstEntries': [ { 'IcmpTypeCode': { 'Code': 123, 'Type': 123 }, 'Protocol': 'string', 'PortRange': { 'From': 123, 'To': 123 }, 'CidrBlock': 'string', 'Ipv6CidrBlock': 'string', 'RuleAction': 'allow'|'deny', 'Egress': True|False }, ], 'ForceRemediateForFirstEntries': True|False, 'LastEntries': [ { 'IcmpTypeCode': { 'Code': 123, 'Type': 123 }, 'Protocol': 'string', 'PortRange': { 'From': 123, 'To': 123 }, 'CidrBlock': 'string', 'Ipv6CidrBlock': 'string', 'RuleAction': 'allow'|'deny', 'Egress': True|False }, ], 'ForceRemediateForLastEntries': True|False } } } }, 'ResourceType': 'string', 'ResourceTypeList': [ 'string', ], 'ResourceTags': [ { 'Key': 'string', 'Value': 'string' }, ], 'ExcludeResourceTags': True|False, 'RemediationEnabled': True|False, 'DeleteUnusedFMManagedResources': True|False, 'IncludeMap': { 'string': [ 'string', ] }, 'ExcludeMap': { 'string': [ 'string', ] }, 'ResourceSetIds': [ 'string', ], 'PolicyDescription': 'string', 'PolicyStatus': 'ACTIVE'|'OUT_OF_ADMIN_SCOPE', 'ResourceTagLogicalOperator': 'AND'|'OR' }, TagList=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **Policy** (*dict*) -- **[REQUIRED]** The details of the Firewall Manager policy to be created. * **PolicyId** *(string) --* The ID of the Firewall Manager policy. * **PolicyName** *(string) --* **[REQUIRED]** The name of the Firewall Manager policy. * **PolicyUpdateToken** *(string) --* A unique identifier for each update to the policy. When issuing a "PutPolicy" request, the "PolicyUpdateToken" in the request must match the "PolicyUpdateToken" of the current policy version. To get the "PolicyUpdateToken" of the current policy version, use a "GetPolicy" request. * **SecurityServicePolicyData** *(dict) --* **[REQUIRED]** Details about the security service that is being used to protect the resources. * **Type** *(string) --* **[REQUIRED]** The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an WAF policy, a Shield Advanced policy, or a security group policy. For security group policies, Firewall Manager supports one security group for each common policy and for each content audit policy. This is an adjustable limit that you can increase by contacting Amazon Web Services Support. * **ManagedServiceData** *(string) --* Details about the service that are specific to the service type, in JSON format. * Example: "DNS_FIREWALL" ""{\"type\":\"DNS_FIREWALL\",\" preProcessRuleGroups\":[{\"ruleGroupId\":\"rslvr-frg-1\ ",\"priority\":10}],\"postProcessRuleGroups\":[{\"ruleG roupId\":\"rslvr-frg-2\",\"priority\":9911}]}"" Note: Valid values for "preProcessRuleGroups" are between 1 and 99. Valid values for "postProcessRuleGroups" are between 9901 and 10000. * Example: "IMPORT_NETWORK_FIREWALL" ""{\"type\":\"IMPORT _NETWORK_FIREWALL\",\"awsNetworkFirewallConfig\":{\"net workFirewallStatelessRuleGroupReferences\":[{\"resource ARN\":\"arn:aws:network-firewall:us-west-2:000000000000 :stateless-rulegroup\/rg1\",\"priority\":1}],\"networkF irewallStatelessDefaultActions\":[\"aws:drop\"],\"netwo rkFirewallStatelessFragmentDefaultActions\":[\"aws:pass \"],\"networkFirewallStatelessCustomActions\":[],\"netw orkFirewallStatefulRuleGroupReferences\":[{\"resourceAR N\":\"arn:aws:network-firewall:us-west-2:aws-managed :stateful-rulegroup\/ThreatSignaturesEmergingEventsStri ctOrder\",\"priority\":8}],\"networkFirewallStatefulEng ineOptions\":{\"ruleOrder\":\"STRICT_ORDER\"},\"network FirewallStatefulDefaultActions\":[\"aws:drop_strict\"]} }"" ""{\"type\":\"DNS_FIREWALL\",\"preProcessRuleGroups \":[{\"ruleGroupId\":\"rslvr-frg-1\",\"priority\":10}], \"postProcessRuleGroups\":[{\"ruleGroupId\":\"rslvr- frg-2\",\"priority\":9911}]}"" Note: Valid values for "preProcessRuleGroups" are between 1 and 99. Valid values for "postProcessRuleGroups" are between 9901 and 10000. * Example: "NETWORK_FIREWALL" - Centralized deployment model ""{\"type\":\"NETWORK_FIREWALL\",\"awsNetworkFire wallConfig\":{\"networkFirewallStatelessRuleGroupRefere nces\":[{\"resourceARN\":\"arn:aws:network-firewall:us- east-1:123456789011:stateless-rulegroup/test\",\"priori ty\":1}],\"networkFirewallStatelessDefaultActions\":[\" aws:forward_to_sfe\",\"customActionName\"],\"networkFir ewallStatelessFragmentDefaultActions\":[\"aws:forward_t o_sfe\",\"customActionName\"],\"networkFirewallStateles sCustomActions\":[{\"actionName\":\"customActionName\", \"actionDefinition\":{\"publishMetricAction\":{\"dimens ions\":[{\"value\":\"metricdimensionvalue\"}]}}}],\"net workFirewallStatefulRuleGroupReferences\":[{\"resourceA RN\":\"arn:aws:network-firewall:us-east-1:123456789011 :stateful-rulegroup/test\"}],\"networkFirewallLoggingCo nfiguration\":{\"logDestinationConfigs\":[{\"logDestina tionType\":\"S3\",\"logType\":\"ALERT\",\"logDestinatio n\":{\"bucketName\":\"s3-bucket-name\"}},{\"logDestinat ionType\":\"S3\",\"logType\":\"FLOW\",\"logDestination\ ":{\"bucketName\":\"s3-bucket-name\"}}],\"overrideExist ingConfig\":true}},\"firewallDeploymentModel\":{\"centr alizedFirewallDeploymentModel\":{\"centralizedFirewallO rchestrationConfig\":{\"inspectionVpcIds\":[{\"resource Id\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"fi rewallCreationConfig\":{\"endpointLocation\":{\"availab ilityZoneConfigList\":[{\"availabilityZoneId\":null,\"a vailabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrL ist\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]} }}}"" To use the centralized deployment model, you must set PolicyOption to "CENTRALIZED". * Example: "NETWORK_FIREWALL" - Distributed deployment model with automatic Availability Zone configuration "" {\"type\":\"NETWORK_FIREWALL\",\"networkFirewallStatele ssRuleGroupReferences\":[{\"resourceARN\":\"arn:aws :network-firewall:us-east-1:123456789011:stateless-rule group/test\",\"priority\":1}],\"networkFirewallStateles sDefaultActions\":[\"aws:forward_to_sfe\",\"customActio nName\"],\"networkFirewallStatelessFragmentDefaultActio ns\":[\"aws:forward_to_sfe\",\"customActionName\"],\"ne tworkFirewallStatelessCustomActions\":[{\"actionName\": \"customActionName\",\"actionDefinition\":{\"publishMet ricAction\":{\"dimensions\":[{\"value\":\"metricdimensi onvalue\"}]}}}],\"networkFirewallStatefulRuleGroupRefer ences\":[{\"resourceARN\":\"arn:aws:network-firewall:us- east-1:123456789011:stateful-rulegroup/test\"}],\"netwo rkFirewallOrchestrationConfig\":{\"singleFirewallEndpoi ntPerVPC\":false,\"allowedIPV4CidrList\":[\"10.0.0.0/28 \",\"192.168.0.0/28\"],\"routeManagementAction\":\"OFF\ "},\"networkFirewallLoggingConfiguration\":{\"logDestin ationConfigs\":[{\"logDestinationType\":\"S3\",\"logTyp e\":\"ALERT\",\"logDestination\":{\"bucketName\":\"s3 -bucket-name\"}},{\"logDestinationType\":\"S3\",\"logTy pe\":\"FLOW\",\"logDestination\":{\"bucketName\":\"s3 -bucket-name\"}}],\"overrideExistingConfig\":true}}"" With automatic Availbility Zone configuration, Firewall Manager chooses which Availability Zones to create the endpoints in. To use the distributed deployment model, you must set PolicyOption to "NULL". * Example: "NETWORK_FIREWALL" - Distributed deployment model with automatic Availability Zone configuration and route management ""{\"type\":\"NETWORK_FIREWALL\",\"net workFirewallStatelessRuleGroupReferences\":[{\"resource ARN\":\"arn:aws:network-firewall:us-east-1:123456789011 :stateless-rulegroup/test\",\"priority\":1}],\"networkF irewallStatelessDefaultActions\":[\"aws:forward_to_sfe\ ",\"customActionName\"],\"networkFirewallStatelessFragm entDefaultActions\":[\"aws:forward_to_sfe\",\"customAct ionName\"],\"networkFirewallStatelessCustomActions\":[{ \"actionName\":\"customActionName\",\"actionDefinition\ ":{\"publishMetricAction\":{\"dimensions\":[{\"value\": \"metricdimensionvalue\"}]}}}],\"networkFirewallStatefu lRuleGroupReferences\":[{\"resourceARN\":\"arn:aws :network-firewall:us-east-1:123456789011:stateful-ruleg roup/test\"}],\"networkFirewallOrchestrationConfig\":{\ "singleFirewallEndpointPerVPC\":false,\"allowedIPV4Cidr List\":[\"10.0.0.0/28\",\"192.168.0.0/28\"],\"routeMana gementAction\":\"MONITOR\",\"routeManagementTargetTypes \":[\"InternetGateway\"]},\"networkFirewallLoggingConfi guration\":{\"logDestinationConfigs\":[{\"logDestinatio nType\":\"S3\",\"logType\":\"ALERT\",\"logDestination\" :{\"bucketName\":\"s3-bucket- name\"}},{\"logDestinationType\":\"S3\",\"logType\": \"FLOW\",\"logDestination\":{\"bucketName\":\"s3-bucket- name\"}}],\"overrideExistingConfig\":true}}"" To use the distributed deployment model, you must set PolicyOption to "NULL". * Example: "NETWORK_FIREWALL" - Distributed deployment model with custom Availability Zone configuration ""{\" type\":\"NETWORK_FIREWALL\",\"networkFirewallStatelessR uleGroupReferences\":[{\"resourceARN\":\"arn:aws :network-firewall:us-east-1:123456789011:stateless-rule group/test\",\"priority\":1}],\"networkFirewallStateles sDefaultActions\":[\"aws:forward_to_sfe\",\"customActio nName\"],\"networkFirewallStatelessFragmentDefaultActio ns\":[\"aws:forward_to_sfe\",\"fragmentcustomactionname \"],\"networkFirewallStatelessCustomActions\":[{\"actio nName\":\"customActionName\", \"actionDefinition\":{\"p ublishMetricAction\":{\"dimensions\":[{\"value\":\"metr icdimensionvalue\"}]}}},{\"actionName\":\"fragmentcusto mactionname\",\"actionDefinition\":{\"publishMetricActi on\":{\"dimensions\":[{\"value\":\"fragmentmetricdimens ionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupRefe rences\":[{\"resourceARN\":\"arn:aws:network-firewall :us-east-1:123456789011:stateful-rulegroup/test\"}],\"n etworkFirewallOrchestrationConfig\":{\"firewallCreation Config\":{ \"endpointLocation\":{\"availabilityZoneConf igList\":[{\"availabilityZoneName\":\"us-east-1a\",\"al lowedIPV4CidrList\":[\"10.0.0.0/28\"]},{\"availabilityZ oneName\":\"us-east-1b\",\"allowedIPV4CidrList\":[ \"10.0.0.0/28\"]}]} },\"singleFirewallEndpointPerVPC\": false,\"allowedIPV4CidrList\":null,\"routeManagementAct ion\":\"OFF\",\"networkFirewallLoggingConfiguration\":{ \"logDestinationConfigs\":[{\"logDestinationType\":\"S3 \",\"logType\":\"ALERT\",\"logDestination\":{\"bucketNa me\":\"s3-bucket-name\"}},{\"logDestinationType\":\"S3\ ",\"logType\":\"FLOW\",\"logDestination\":{\"bucketName \":\"s3-bucket- name\"}}],\"overrideExistingConfig\":boolean}}"" With custom Availability Zone configuration, you define which specific Availability Zones to create endpoints in by configuring "firewallCreationConfig". To configure the Availability Zones in "firewallCreationConfig", specify either the "availabilityZoneName" or "availabilityZoneId" parameter, not both parameters. To use the distributed deployment model, you must set PolicyOption to "NULL". * Example: "NETWORK_FIREWALL" - Distributed deployment model with custom Availability Zone configuration and route management ""{\"type\":\"NETWORK_FIREWALL\",\"net workFirewallStatelessRuleGroupReferences\":[{\"resource ARN\":\"arn:aws:network-firewall:us-east-1:123456789011 :stateless-rulegroup/test\",\"priority\":1}],\"networkF irewallStatelessDefaultActions\":[\"aws:forward_to_sfe\ ",\"customActionName\"],\"networkFirewallStatelessFragm entDefaultActions\":[\"aws:forward_to_sfe\",\"fragmentc ustomactionname\"],\"networkFirewallStatelessCustomActi ons\":[{\"actionName\":\"customActionName\",\"actionDef inition\":{\"publishMetricAction\":{\"dimensions\":[{\" value\":\"metricdimensionvalue\"}]}}},{\"actionName\":\ "fragmentcustomactionname\",\"actionDefinition\":{\"pub lishMetricAction\":{\"dimensions\":[{\"value\":\"fragme ntmetricdimensionvalue\"}]}}}],\"networkFirewallStatefu lRuleGroupReferences\":[{\"resourceARN\":\"arn:aws :network-firewall:us-east-1:123456789011:stateful-ruleg roup/test\"}],\"networkFirewallOrchestrationConfig\":{\ "firewallCreationConfig\":{\"endpointLocation\":{\"avai labilityZoneConfigList\":[{\"availabilityZoneName \":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/2 8\"]},{\"availabilityZoneName\":\"us-east-1b\",\"allowe dIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"singleFirewallE ndpointPerVPC\":false,\"allowedIPV4CidrList\":null,\"ro uteManagementAction\":\"MONITOR\",\"routeManagementTarg etTypes\":[\"InternetGateway\"],\"routeManagementConfig \":{\"allowCrossAZTrafficIfNoEndpoint\":true}},\"networ kFirewallLoggingConfiguration\":{\"logDestinationConfig s\":[{\"logDestinationType\":\"S3\",\"logType\":\"ALERT \",\"logDestination\":{\"bucketName\":\"s3-bucket-name\ "}},{\"logDestinationType\":\"S3\",\"logType\":\"FLOW\" ,\"logDestination\":{\"bucketName\":\"s3-bucket- name\"}}],\"overrideExistingConfig\":boolean}}"" To use the distributed deployment model, you must set PolicyOption to "NULL". * Example: "SECURITY_GROUPS_COMMON" ""{\"type\":\"SECURIT Y_GROUPS_COMMON\",\"securityGroups\":[{\"id\":\"sg-03b1 f67d69ed00197\"}],\"revertManualSecurityGroupChanges\": true,\"exclusiveResourceSecurityGroupManagement\":true, \"applyToAllEC2InstanceENIs\":false,\"includeSharedVPC\ ":true,\"enableSecurityGroupReferencesDistribution\":tr ue}"" * Example: "SECURITY_GROUPS_COMMON" - Security group tag distribution """{\"type\":\"SECURITY_GROUPS_COMMON\",\" securityGroups\":[{\"id\":\"sg-000e55995d61a06bd\"}],\" revertManualSecurityGroupChanges\":true,\"exclusiveReso urceSecurityGroupManagement\":false,\"applyToAllEC2Inst anceENIs\":false,\"includeSharedVPC\":false,\"enableTag Distribution\":true}""" Firewall Manager automatically distributes tags from the primary group to the security groups created by this policy. To use security group tag distribution, you must also set "revertManualSecurityGroupChanges" to "true", otherwise Firewall Manager won't be able to create the policy. When you enable "revertManualSecurityGroupChanges", Firewall Manager identifies and reports when the security groups created by this policy become non- compliant. Firewall Manager won't distribute system tags added by Amazon Web Services services into the replica security groups. System tags begin with the "aws:" prefix. * Example: Shared VPCs. Apply the preceding policy to resources in shared VPCs as well as to those in VPCs that the account owns ""{\"type\":\"SECURITY_GROUPS_COM MON\",\"revertManualSecurityGroupChanges\":false,\"excl usiveResourceSecurityGroupManagement\":false, \"applyTo AllEC2InstanceENIs\":false,\"includeSharedVPC\":true,\" securityGroups\":[{\"id\":\" sg-000e55995d61a06bd\"}]}"" * Example: "SECURITY_GROUPS_CONTENT_AUDIT" ""{\"type\":\" SECURITY_GROUPS_CONTENT_AUDIT\",\"preManagedOptions\":[ {\"denyProtocolAllValue\":true},{\"auditSgDirection\":{ \"type\":\"ALL\"}}],\"securityGroups\":[{\"id\":\"sg-04 9b2393a25468971\"}],\"securityGroupAction\":{\"type\":\ "ALLOW\"}}"" The security group action for content audit can be "ALLOW" or "DENY". For "ALLOW", all in-scope security group rules must be within the allowed range of the policy's security group rules. For "DENY", all in- scope security group rules must not contain a value or a range that matches a rule value or range in the policy security group. * Example: "SECURITY_GROUPS_USAGE_AUDIT" ""{\"type\":\"SE CURITY_GROUPS_USAGE_AUDIT\",\"deleteUnusedSecurityGroup s\":true,\"coalesceRedundantSecurityGroups\":true,\"opt ionalDelayForUnusedInMinutes\":60}"" * Example: "SHIELD_ADVANCED" with web ACL management ""{\ "type\":\"SHIELD_ADVANCED\",\"optimizeUnassociatedWebAC L\":true}"" If you set "optimizeUnassociatedWebACL" to "true", Firewall Manager creates web ACLs in accounts within the policy scope if the web ACLs will be used by at least one resource. Firewall Manager creates web ACLs in the accounts within policy scope only if the web ACLs will be used by at least one resource. If at any time an account comes into policy scope, Firewall Manager automatically creates a web ACL in the account if at least one resource will use the web ACL. Upon enablement, Firewall Manager performs a one-time cleanup of unused web ACLs in your account. The cleanup process can take several hours. If a resource leaves policy scope after Firewall Manager creates a web ACL, Firewall Manager doesn't disassociate the resource from the web ACL. If you want Firewall Manager to clean up the web ACL, you must first manually disassociate the resources from the web ACL, and then enable the manage unused web ACLs option in your policy. If you set "optimizeUnassociatedWebACL" to "false", and Firewall Manager automatically creates an empty web ACL in each account that's within policy scope. * Specification for "SHIELD_ADVANCED" for Amazon CloudFront distributions ""{\"type\":\"SHIELD_ADVANCED\ ",\"automaticResponseConfiguration\": {\"automaticRespo nseStatus\":\"ENABLED|IGNORED|DISABLED\", \"automaticResponseAction\":\"BLOCK|COUNT\"}, \"overrideCustomerWebaclClassic\":true|false, \"optimizeUnassociatedWebACL\":true|false}"" For example: ""{\"type\":\"SHIELD_ADVANCED\",\"automaticRes ponseConfiguration\": {\"automaticResponseStatus\":\"ENABLED\", \"automaticResponseAction\":\"COUNT\"}}"" The default value for "automaticResponseStatus" is "IGNORED". The value for "automaticResponseAction" is only required when "automaticResponseStatus" is set to "ENABLED". The default value for "overrideCustomerWebaclClassic" is "false". For other resource types that you can protect with a Shield Advanced policy, this "ManagedServiceData" configuration is an empty string. * Example: "THIRD_PARTY_FIREWALL" Replace "THIRD_PARTY_FIREWALL_NAME" with the name of the third- party firewall. ""{ "type":"THIRD_PARTY_FIREWALL", "thirdPartyFirewall":"THIRD_PARTY_FIREWALL_NAME", "thirdPartyFirewallConfig":{ "thirdPartyFirewallPolicyList":["global-1"] }, "firewallDeploymentModel":{ "distributedFirewallDeploymentModel":{ "distributedFirewallOrchestrationConfig":{ "firewallCreationConfig":{ "endpointLocation":{ "availabilityZoneConfigList":[ { "availabilityZoneName":"${AvailabilityZone}" } ] } }, "allowedIPV4CidrList":[ ] } } } }"" * Example: "WAFV2" - Account takeover prevention, Bot Control managed rule groups, optimize unassociated web ACL, and rule action override ""{\"type\":\"WAFV2\",\"p reProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrid eAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentif ier\":{\"versionEnabled\":null,\"version\":null,\"vendo rName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRu lesATPRuleSet\",\"managedRuleGroupConfigs\":[{\"awsmana gedRulesATPRuleSet\":{\"loginPath\":\"/loginpath\",\"re questInspection\":{\"payloadType\":\"FORM_ENCODED|JSON\ ",\"usernameField\":{\"identifier\":\"/form/username\"} ,\"passwordField\":{\"identifier\":\"/form/password\"}} }}]},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRu les\":[],\"sampledRequestsEnabled\":true},{\"ruleGroupA rn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"mana gedRuleGroupIdentifier\":{\"versionEnabled\":null,\"ver sion\":null,\"vendorName\":\"AWS\",\"managedRuleGroupNa me\":\"AWSManagedRulesBotControlRuleSet\",\"managedRule GroupConfigs\":[{\"awsmanagedRulesBotControlRuleSet\":{ \"inspectionLevel\":\"TARGETED|COMMON\"}}]},\"ruleGroup Type\":\"ManagedRuleGroup\",\"excludeRules\":[],\"sampl edRequestsEnabled\":true,\"ruleActionOverrides\":[{\"na me\":\"Rule1\",\"actionToUse\":{\"allow|block|count|cap tcha|challenge\":{}}},{\"name\":\"Rule2\",\"actionToUse \":{\"allow|block|count|captcha|challenge\":{}}}]}],\"p ostProcessRuleGroups\":[],\"defaultAction\":{\"type\":\ "ALLOW\"},\"customRequestHandling\":null,\"customRespon se\":null,\"overrideCustomerWebACLAssociation\":false,\ "loggingConfiguration\":null,\"sampledRequestsEnabledFo rDefaultActions\":true,\"optimizeUnassociatedWebACL\":t rue}"" * Bot Control - For information about "AWSManagedRulesBotControlRuleSet" managed rule groups, see AWSManagedRulesBotControlRuleSet in the *WAF API Reference*. * Fraud Control account takeover prevention (ATP) - For information about the properties available for "AWSManagedRulesATPRuleSet" managed rule groups, see AWSManagedRulesATPRuleSet in the *WAF API Reference*. * Optimize unassociated web ACL - If you set "optimizeUnassociatedWebACL" to "true", Firewall Manager creates web ACLs in accounts within the policy scope if the web ACLs will be used by at least one resource. Firewall Manager creates web ACLs in the accounts within policy scope only if the web ACLs will be used by at least one resource. If at any time an account comes into policy scope, Firewall Manager automatically creates a web ACL in the account if at least one resource will use the web ACL. Upon enablement, Firewall Manager performs a one-time cleanup of unused web ACLs in your account. The cleanup process can take several hours. If a resource leaves policy scope after Firewall Manager creates a web ACL, Firewall Manager disassociates the resource from the web ACL, but won't clean up the unused web ACL. Firewall Manager only cleans up unused web ACLs when you first enable management of unused web ACLs in a policy. If you set "optimizeUnassociatedWebACL" to "false" Firewall Manager doesn't manage unused web ACLs, and Firewall Manager automatically creates an empty web ACL in each account that's within policy scope. * Rule action overrides - Firewall Manager supports rule action overrides only for managed rule groups. To configure a "RuleActionOverrides" add the "Name" of the rule to override, and "ActionToUse", which is the new action to use for the rule. For information about using rule action override, see RuleActionOverride in the *WAF API Reference*. * Example: "WAFV2" - "CAPTCHA" and "Challenge" configs "" {\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGr oupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\" managedRuleGroupIdentifier\":{\"versionEnabled\":null,\ "version\":null,\"vendorName\":\"AWS\",\"managedRuleGro upName\":\"AWSManagedRulesAdminProtectionRuleSet\"},\"r uleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[] ,\"sampledRequestsEnabled\":true}],\"postProcessRuleGro ups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"custo mRequestHandling\":null,\"customResponse\":null,\"overr ideCustomerWebACLAssociation\":false,\"loggingConfigura tion\":null,\"sampledRequestsEnabledForDefaultActions\" :true,\"captchaConfig\":{\"immunityTimeProperty\":{\"im munityTime\":500}},\"challengeConfig\":{\"immunityTimeP roperty\":{\"immunityTime\":800}},\"tokenDomains\":[\"g oogle.com\",\"amazon.com\"],\"associationConfig\":{\"re questBody\":{\"CLOUDFRONT\":{\"defaultSizeInspectionLim it\":\"KB_16\"}}}}"" * "CAPTCHA" and "Challenge" configs - If you update the policy's values for "associationConfig", "captchaConfig", "challengeConfig", or "tokenDomains", Firewall Manager will overwrite your local web ACLs to contain the new value(s). However, if you don't update the policy's "associationConfig", "captchaConfig", "challengeConfig", or "tokenDomains" values, the values in your local web ACLs will remain unchanged. For information about association configs, see AssociationConfig. For information about CAPTCHA and Challenge configs, see CaptchaConfig and ChallengeConfig in the *WAF API Reference*. * "defaultSizeInspectionLimit" - Specifies the maximum size of the web request body component that an associated Amazon CloudFront distribution should send to WAF for inspection. For more information, see DefaultSizeInspectionLimit in the *WAF API Reference*. * Example: "WAFV2" - Firewall Manager support for WAF managed rule group versioning ""{\"preProcessRuleGroups \":[{\"ruleGroupType\":\"ManagedRuleGroup\",\"overrideA ction\":{\"type\":\"NONE\"},\"sampledRequestsEnabled\": true,\"managedRuleGroupIdentifier\":{\"managedRuleGroup Name\":\"AWSManagedRulesAdminProtectionRuleSet\",\"vend orName\":\"AWS\",\"managedRuleGroupConfigs\":null}}],\" postProcessRuleGroups\":[],\"defaultAction\":{\"type\": \"ALLOW\"},\"customRequestHandling\":null,\"tokenDomain s\":null,\"customResponse\":null,\"type\":\"WAFV2\",\"o verrideCustomerWebACLAssociation\":false,\"sampledReque stsEnabledForDefaultActions\":true,\"optimizeUnassociat edWebACL\":true,\"webACLSource\":\"RETROFIT_EXISTING\"} "" To use a specific version of a WAF managed rule group in your Firewall Manager policy, you must set "versionEnabled" to "true", and set "version" to the version you'd like to use. If you don't set "versionEnabled" to "true", or if you omit "versionEnabled", then Firewall Manager uses the default version of the WAF managed rule group. * Example: "WAFV2" - Logging configurations ""{\"type\":\ "WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":nu ll, \"overrideAction\":{\"type\":\"NONE\"},\"managedRul eGroupIdentifier\": {\"versionEnabled\":null,\"version\ ":null,\"vendorName\":\"AWS\", \"managedRuleGroupName\" :\"AWSManagedRulesAdminProtectionRuleSet\"} ,\"ruleGrou pType\":\"ManagedRuleGroup\",\"excludeRules\":[], \"sam pledRequestsEnabled\":true}],\"postProcessRuleGroups\": [], \"defaultAction\":{\"type\":\"ALLOW\"},\"customRequ estHandling\" :null,\"customResponse\":null,\"overrideC ustomerWebACLAssociation\" :false,\"loggingConfiguratio n\":{\"logDestinationConfigs\": [\"arn:aws:s3:::aws-waf- logs-example-bucket\"] ,\"redactedFields\":[],\"logging FilterConfigs\":{\"defaultBehavior\":\"KEEP\", \"filter s\":[{\"behavior\":\"KEEP\",\"requirement\":\"MEETS_ALL \", \"conditions\":[{\"actionCondition\":\"CAPTCHA\"},{ \"actionCondition\": \"CHALLENGE\"}, {\"actionCondition \":\"EXCLUDED_AS_COUNT\"}]}]}},\"sampledRequestsEnabled ForDefaultActions\":true}"" Firewall Manager supports Amazon Kinesis Data Firehose and Amazon S3 as the "logDestinationConfigs" in your "loggingConfiguration". For information about WAF logging configurations, see LoggingConfiguration in the *WAF API Reference* In the "loggingConfiguration", you can specify one "logDestinationConfigs". Optionally provide as many as 20 "redactedFields". The "RedactedFieldType" must be one of "URI", "QUERY_STRING", "HEADER", or "METHOD". * Example: "WAF Classic" ""{\"ruleGroups\":[{\"id\":\"78cb36c0-1b5e-4d7d-82b2-cf 48d3ad9659\",\"overrideAction\":{\"type\":\"NONE\"}}],\ "overrideCustomerWebACLAssociation\":true,\"defaultActi on\":{\"type\":\"ALLOW\"},\"type\":\"WAF\"}"" * **PolicyOption** *(dict) --* Contains the settings to configure a network ACL policy, a Network Firewall firewall policy deployment model, or a third-party firewall policy. * **NetworkFirewallPolicy** *(dict) --* Defines the deployment model to use for the firewall policy. * **FirewallDeploymentModel** *(string) --* Defines the deployment model to use for the firewall policy. To use a distributed model, set PolicyOption to "NULL". * **ThirdPartyFirewallPolicy** *(dict) --* Defines the policy options for a third-party firewall policy. * **FirewallDeploymentModel** *(string) --* Defines the deployment model to use for the third- party firewall policy. * **NetworkAclCommonPolicy** *(dict) --* Defines a Firewall Manager network ACL policy. * **NetworkAclEntrySet** *(dict) --* **[REQUIRED]** The definition of the first and last rules for the network ACL policy. * **FirstEntries** *(list) --* The rules that you want to run first in the Firewall Manager managed network ACLs. Note: Provide these in the order in which you want them to run. Firewall Manager will assign the specific rule numbers for you, in the network ACLs that it creates. You must specify at least one first entry or one last entry in any network ACL policy. * *(dict) --* Describes a rule in a network ACL. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the network ACL, Amazon Web Services processes the entries in the network ACL according to the rule numbers, in ascending order. When you manage an individual network ACL, you explicitly specify the rule numbers. When you specify the network ACL rules in a Firewall Manager policy, you provide the rules to run first, in the order that you want them to run, and the rules to run last, in the order that you want them to run. Firewall Manager assigns the rule numbers for you when you save the network ACL policy specification. * **IcmpTypeCode** *(dict) --* ICMP protocol: The ICMP type and code. * **Code** *(integer) --* ICMP code. * **Type** *(integer) --* ICMP type. * **Protocol** *(string) --* **[REQUIRED]** The protocol number. A value of "-1" means all protocols. * **PortRange** *(dict) --* TCP or UDP protocols: The range of ports the rule applies to. * **From** *(integer) --* The beginning port number of the range. * **To** *(integer) --* The ending port number of the range. * **CidrBlock** *(string) --* The IPv4 network range to allow or deny, in CIDR notation. * **Ipv6CidrBlock** *(string) --* The IPv6 network range to allow or deny, in CIDR notation. * **RuleAction** *(string) --* **[REQUIRED]** Indicates whether to allow or deny the traffic that matches the rule. * **Egress** *(boolean) --* **[REQUIRED]** Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). If it's not an egress rule, then it's an ingress, or inbound, rule. * **ForceRemediateForFirstEntries** *(boolean) --* **[REQUIRED]** Applies only when remediation is enabled for the policy as a whole. Firewall Manager uses this setting when it finds policy violations that involve conflicts between the custom entries and the policy entries. If forced remediation is disabled, Firewall Manager marks the network ACL as noncompliant and does not try to remediate. For more information about the remediation behavior, see Remediation for managed network ACLs in the *Firewall Manager Developer Guide*. * **LastEntries** *(list) --* The rules that you want to run last in the Firewall Manager managed network ACLs. Note: Provide these in the order in which you want them to run. Firewall Manager will assign the specific rule numbers for you, in the network ACLs that it creates. You must specify at least one first entry or one last entry in any network ACL policy. * *(dict) --* Describes a rule in a network ACL. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the network ACL, Amazon Web Services processes the entries in the network ACL according to the rule numbers, in ascending order. When you manage an individual network ACL, you explicitly specify the rule numbers. When you specify the network ACL rules in a Firewall Manager policy, you provide the rules to run first, in the order that you want them to run, and the rules to run last, in the order that you want them to run. Firewall Manager assigns the rule numbers for you when you save the network ACL policy specification. * **IcmpTypeCode** *(dict) --* ICMP protocol: The ICMP type and code. * **Code** *(integer) --* ICMP code. * **Type** *(integer) --* ICMP type. * **Protocol** *(string) --* **[REQUIRED]** The protocol number. A value of "-1" means all protocols. * **PortRange** *(dict) --* TCP or UDP protocols: The range of ports the rule applies to. * **From** *(integer) --* The beginning port number of the range. * **To** *(integer) --* The ending port number of the range. * **CidrBlock** *(string) --* The IPv4 network range to allow or deny, in CIDR notation. * **Ipv6CidrBlock** *(string) --* The IPv6 network range to allow or deny, in CIDR notation. * **RuleAction** *(string) --* **[REQUIRED]** Indicates whether to allow or deny the traffic that matches the rule. * **Egress** *(boolean) --* **[REQUIRED]** Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). If it's not an egress rule, then it's an ingress, or inbound, rule. * **ForceRemediateForLastEntries** *(boolean) --* **[REQUIRED]** Applies only when remediation is enabled for the policy as a whole. Firewall Manager uses this setting when it finds policy violations that involve conflicts between the custom entries and the policy entries. If forced remediation is disabled, Firewall Manager marks the network ACL as noncompliant and does not try to remediate. For more information about the remediation behavior, see Remediation for managed network ACLs in the *Firewall Manager Developer Guide*. * **ResourceType** *(string) --* **[REQUIRED]** The type of resource protected by or in scope of the policy. This is in the format shown in the Amazon Web Services Resource Types Reference. To apply this policy to multiple resource types, specify a resource type of "ResourceTypeList" and then specify the resource types in a "ResourceTypeList". The following are valid resource types for each Firewall Manager policy type: * Amazon Web Services WAF Classic - "AWS::ApiGateway::Stage", "AWS::CloudFront::Distribution", and "AWS::ElasticLoadBalancingV2::LoadBalancer". * WAF - "AWS::ApiGateway::Stage", "AWS::ElasticLoadBalancingV2::LoadBalancer", and "AWS::CloudFront::Distribution". * Shield Advanced - "AWS::ElasticLoadBalancingV2::LoadBalancer", "AWS::ElasticLoadBalancing::LoadBalancer", "AWS::EC2::EIP", and "AWS::CloudFront::Distribution". * Network ACL - "AWS::EC2::Subnet". * Security group usage audit - "AWS::EC2::SecurityGroup". * Security group content audit - "AWS::EC2::SecurityGroup", "AWS::EC2::NetworkInterface", and "AWS::EC2::Instance". * DNS Firewall, Network Firewall, and third-party firewall - "AWS::EC2::VPC". * **ResourceTypeList** *(list) --* An array of "ResourceType" objects. Use this only to specify multiple resource types. To specify a single resource type, use "ResourceType". * *(string) --* * **ResourceTags** *(list) --* An array of "ResourceTag" objects. * *(dict) --* The resource tags that Firewall Manager uses to determine if a particular resource should be included or excluded from the Firewall Manager policy. Tags enable you to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value. If you add more than one tag to a policy, you can specify whether to combine them using the logical AND operator or the logical OR operator. For more information, see Working with Tag Editor. Every resource tag must have a string value, either a non- empty string or an empty string. If you don't provide a value for a resource tag, Firewall Manager saves the value as an empty string: "". When Firewall Manager compares tags, it only matches two tags if they have the same key and the same value. A tag with an empty string value only matches with tags that also have an empty string value. * **Key** *(string) --* **[REQUIRED]** The resource tag key. * **Value** *(string) --* The resource tag value. To specify an empty string value, either don't provide this or specify it as "". * **ExcludeResourceTags** *(boolean) --* **[REQUIRED]** If set to "True", resources with the tags that are specified in the "ResourceTag" array are not in scope of the policy. If set to "False", and the "ResourceTag" array is not null, only resources with the specified tags are in scope of the policy. * **RemediationEnabled** *(boolean) --* **[REQUIRED]** Indicates if the policy should be automatically applied to new resources. * **DeleteUnusedFMManagedResources** *(boolean) --* Indicates whether Firewall Manager should automatically remove protections from resources that leave the policy scope and clean up resources that Firewall Manager is managing for accounts when those accounts leave policy scope. For example, Firewall Manager will disassociate a Firewall Manager managed web ACL from a protected customer resource when the customer resource leaves policy scope. By default, Firewall Manager doesn't remove protections or delete Firewall Manager managed resources. This option is not available for Shield Advanced or WAF Classic policies. * **IncludeMap** *(dict) --* Specifies the Amazon Web Services account IDs and Organizations organizational units (OUs) to include in the policy. Specifying an OU is the equivalent of specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time. You can specify inclusions or exclusions, but not both. If you specify an "IncludeMap", Firewall Manager applies the policy to all accounts specified by the "IncludeMap", and does not evaluate any "ExcludeMap" specifications. If you do not specify an "IncludeMap", then Firewall Manager applies the policy to all accounts except for those specified by the "ExcludeMap". You can specify account IDs, OUs, or a combination: * Specify account IDs by setting the key to "ACCOUNT". For example, the following is a valid map: "{“ACCOUNT” : [“accountID1”, “accountID2”]}". * Specify OUs by setting the key to "ORG_UNIT". For example, the following is a valid map: "{“ORG_UNIT” : [“ouid111”, “ouid112”]}". * Specify accounts and OUs together in a single map, separated with a comma. For example, the following is a valid map: "{“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}". * *(string) --* * *(list) --* * *(string) --* * **ExcludeMap** *(dict) --* Specifies the Amazon Web Services account IDs and Organizations organizational units (OUs) to exclude from the policy. Specifying an OU is the equivalent of specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time. You can specify inclusions or exclusions, but not both. If you specify an "IncludeMap", Firewall Manager applies the policy to all accounts specified by the "IncludeMap", and does not evaluate any "ExcludeMap" specifications. If you do not specify an "IncludeMap", then Firewall Manager applies the policy to all accounts except for those specified by the "ExcludeMap". You can specify account IDs, OUs, or a combination: * Specify account IDs by setting the key to "ACCOUNT". For example, the following is a valid map: "{“ACCOUNT” : [“accountID1”, “accountID2”]}". * Specify OUs by setting the key to "ORG_UNIT". For example, the following is a valid map: "{“ORG_UNIT” : [“ouid111”, “ouid112”]}". * Specify accounts and OUs together in a single map, separated with a comma. For example, the following is a valid map: "{“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}". * *(string) --* * *(list) --* * *(string) --* * **ResourceSetIds** *(list) --* The unique identifiers of the resource sets used by the policy. * *(string) --* * **PolicyDescription** *(string) --* Your description of the Firewall Manager policy. * **PolicyStatus** *(string) --* Indicates whether the policy is in or out of an admin's policy or Region scope. * "ACTIVE" - The administrator can manage and delete the policy. * "OUT_OF_ADMIN_SCOPE" - The administrator can view the policy, but they can't edit or delete the policy. Existing policy protections stay in place. Any new resources that come into scope of the policy won't be protected. * **ResourceTagLogicalOperator** *(string) --* Specifies whether to combine multiple resource tags with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. Default: "AND" * **TagList** (*list*) -- The tags to add to the Amazon Web Services resource. * *(dict) --* A collection of key:value pairs associated with an Amazon Web Services resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each Amazon Web Services resource. * **Key** *(string) --* **[REQUIRED]** Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive. * **Value** *(string) --* **[REQUIRED]** Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive. Return type: dict Returns: **Response Syntax** { 'Policy': { 'PolicyId': 'string', 'PolicyName': 'string', 'PolicyUpdateToken': 'string', 'SecurityServicePolicyData': { 'Type': 'WAF'|'WAFV2'|'SHIELD_ADVANCED'|'SECURITY_GROUPS_COMMON'|'SECURITY_GROUPS_CONTENT_AUDIT'|'SECURITY_GROUPS_USAGE_AUDIT'|'NETWORK_FIREWALL'|'DNS_FIREWALL'|'THIRD_PARTY_FIREWALL'|'IMPORT_NETWORK_FIREWALL'|'NETWORK_ACL_COMMON', 'ManagedServiceData': 'string', 'PolicyOption': { 'NetworkFirewallPolicy': { 'FirewallDeploymentModel': 'CENTRALIZED'|'DISTRIBUTED' }, 'ThirdPartyFirewallPolicy': { 'FirewallDeploymentModel': 'CENTRALIZED'|'DISTRIBUTED' }, 'NetworkAclCommonPolicy': { 'NetworkAclEntrySet': { 'FirstEntries': [ { 'IcmpTypeCode': { 'Code': 123, 'Type': 123 }, 'Protocol': 'string', 'PortRange': { 'From': 123, 'To': 123 }, 'CidrBlock': 'string', 'Ipv6CidrBlock': 'string', 'RuleAction': 'allow'|'deny', 'Egress': True|False }, ], 'ForceRemediateForFirstEntries': True|False, 'LastEntries': [ { 'IcmpTypeCode': { 'Code': 123, 'Type': 123 }, 'Protocol': 'string', 'PortRange': { 'From': 123, 'To': 123 }, 'CidrBlock': 'string', 'Ipv6CidrBlock': 'string', 'RuleAction': 'allow'|'deny', 'Egress': True|False }, ], 'ForceRemediateForLastEntries': True|False } } } }, 'ResourceType': 'string', 'ResourceTypeList': [ 'string', ], 'ResourceTags': [ { 'Key': 'string', 'Value': 'string' }, ], 'ExcludeResourceTags': True|False, 'RemediationEnabled': True|False, 'DeleteUnusedFMManagedResources': True|False, 'IncludeMap': { 'string': [ 'string', ] }, 'ExcludeMap': { 'string': [ 'string', ] }, 'ResourceSetIds': [ 'string', ], 'PolicyDescription': 'string', 'PolicyStatus': 'ACTIVE'|'OUT_OF_ADMIN_SCOPE', 'ResourceTagLogicalOperator': 'AND'|'OR' }, 'PolicyArn': 'string' } **Response Structure** * *(dict) --* * **Policy** *(dict) --* The details of the Firewall Manager policy. * **PolicyId** *(string) --* The ID of the Firewall Manager policy. * **PolicyName** *(string) --* The name of the Firewall Manager policy. * **PolicyUpdateToken** *(string) --* A unique identifier for each update to the policy. When issuing a "PutPolicy" request, the "PolicyUpdateToken" in the request must match the "PolicyUpdateToken" of the current policy version. To get the "PolicyUpdateToken" of the current policy version, use a "GetPolicy" request. * **SecurityServicePolicyData** *(dict) --* Details about the security service that is being used to protect the resources. * **Type** *(string) --* The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an WAF policy, a Shield Advanced policy, or a security group policy. For security group policies, Firewall Manager supports one security group for each common policy and for each content audit policy. This is an adjustable limit that you can increase by contacting Amazon Web Services Support. * **ManagedServiceData** *(string) --* Details about the service that are specific to the service type, in JSON format. * Example: "DNS_FIREWALL" ""{\"type\":\"DNS_FIREWALL\", \"preProcessRuleGroups\":[{\"ruleGroupId\":\"rslvr-fr g-1\",\"priority\":10}],\"postProcessRuleGroups\":[{\ "ruleGroupId\":\"rslvr-frg-2\",\"priority\":9911}]}"" Note: Valid values for "preProcessRuleGroups" are between 1 and 99. Valid values for "postProcessRuleGroups" are between 9901 and 10000. * Example: "IMPORT_NETWORK_FIREWALL" ""{\"type\":\"IMPO RT_NETWORK_FIREWALL\",\"awsNetworkFirewallConfig\":{\ "networkFirewallStatelessRuleGroupReferences\":[{\"re sourceARN\":\"arn:aws:network-firewall:us- west-2:000000000000:stateless-rulegroup\/rg1\",\"prio rity\":1}],\"networkFirewallStatelessDefaultActions\" :[\"aws:drop\"],\"networkFirewallStatelessFragmentDef aultActions\":[\"aws:pass\"],\"networkFirewallStatele ssCustomActions\":[],\"networkFirewallStatefulRuleGro upReferences\":[{\"resourceARN\":\"arn:aws:network- firewall:us-west-2:aws-managed:stateful-rulegroup\/Th reatSignaturesEmergingEventsStrictOrder\",\"priority\ ":8}],\"networkFirewallStatefulEngineOptions\":{\"rul eOrder\":\"STRICT_ORDER\"},\"networkFirewallStatefulD efaultActions\":[\"aws:drop_strict\"]}}"" ""{\"type\" :\"DNS_FIREWALL\",\"preProcessRuleGroups\":[{\"ruleGr oupId\":\"rslvr-frg-1\",\"priority\":10}],\"postProce ssRuleGroups\":[{\"ruleGroupId\":\"rslvr- frg-2\",\"priority\":9911}]}"" Note: Valid values for "preProcessRuleGroups" are between 1 and 99. Valid values for "postProcessRuleGroups" are between 9901 and 10000. * Example: "NETWORK_FIREWALL" - Centralized deployment model ""{\"type\":\"NETWORK_FIREWALL\",\"awsNetworkFi rewallConfig\":{\"networkFirewallStatelessRuleGroupRe ferences\":[{\"resourceARN\":\"arn:aws:network- firewall:us-east-1:123456789011:stateless-rulegroup/t est\",\"priority\":1}],\"networkFirewallStatelessDefa ultActions\":[\"aws:forward_to_sfe\",\"customActionNa me\"],\"networkFirewallStatelessFragmentDefaultAction s\":[\"aws:forward_to_sfe\",\"customActionName\"],\"n etworkFirewallStatelessCustomActions\":[{\"actionName \":\"customActionName\",\"actionDefinition\":{\"publi shMetricAction\":{\"dimensions\":[{\"value\":\"metric dimensionvalue\"}]}}}],\"networkFirewallStatefulRuleG roupReferences\":[{\"resourceARN\":\"arn:aws:network- firewall:us-east-1:123456789011:stateful-rulegroup/te st\"}],\"networkFirewallLoggingConfiguration\":{\"log DestinationConfigs\":[{\"logDestinationType\":\"S3\", \"logType\":\"ALERT\",\"logDestination\":{\"bucketNam e\":\"s3-bucket-name\"}},{\"logDestinationType\":\"S3 \",\"logType\":\"FLOW\",\"logDestination\":{\"bucketN ame\":\"s3-bucket-name\"}}],\"overrideExistingConfig\ ":true}},\"firewallDeploymentModel\":{\"centralizedFi rewallDeploymentModel\":{\"centralizedFirewallOrchest rationConfig\":{\"inspectionVpcIds\":[{\"resourceId\" :\"vpc-1234\",\"accountId\":\"123456789011\"}],\"fire wallCreationConfig\":{\"endpointLocation\":{\"availab ilityZoneConfigList\":[{\"availabilityZoneId\":null,\ "availabilityZoneName\":\"us-east-1a\",\"allowedIPV4C idrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList \":[]}}}}"" To use the centralized deployment model, you must set PolicyOption to "CENTRALIZED". * Example: "NETWORK_FIREWALL" - Distributed deployment model with automatic Availability Zone configuration ""{\"type\":\"NETWORK_FIREWALL\",\"networkFirewallSta telessRuleGroupReferences\":[{\"resourceARN\":\"arn:a ws:network-firewall:us-east-1:123456789011:stateless- rulegroup/test\",\"priority\":1}],\"networkFirewallSt atelessDefaultActions\":[\"aws:forward_to_sfe\",\"cus tomActionName\"],\"networkFirewallStatelessFragmentDe faultActions\":[\"aws:forward_to_sfe\",\"customAction Name\"],\"networkFirewallStatelessCustomActions\":[{\ "actionName\":\"customActionName\",\"actionDefinition \":{\"publishMetricAction\":{\"dimensions\":[{\"value \":\"metricdimensionvalue\"}]}}}],\"networkFirewallSt atefulRuleGroupReferences\":[{\"resourceARN\":\"arn:a ws:network-firewall:us-east-1:123456789011:stateful-r ulegroup/test\"}],\"networkFirewallOrchestrationConfi g\":{\"singleFirewallEndpointPerVPC\":false,\"allowed IPV4CidrList\":[\"10.0.0.0/28\",\"192.168.0.0/28\"],\ "routeManagementAction\":\"OFF\"},\"networkFirewallLo ggingConfiguration\":{\"logDestinationConfigs\":[{\"l ogDestinationType\":\"S3\",\"logType\":\"ALERT\",\"lo gDestination\":{\"bucketName\":\"s3-bucket-name\"}},{ \"logDestinationType\":\"S3\",\"logType\":\"FLOW\",\" logDestination\":{\"bucketName\":\"s3-bucket- name\"}}],\"overrideExistingConfig\":true}}"" With automatic Availbility Zone configuration, Firewall Manager chooses which Availability Zones to create the endpoints in. To use the distributed deployment model, you must set PolicyOption to "NULL". * Example: "NETWORK_FIREWALL" - Distributed deployment model with automatic Availability Zone configuration and route management ""{\"type\":\"NETWORK_FIREWALL\" ,\"networkFirewallStatelessRuleGroupReferences\":[{\" resourceARN\":\"arn:aws:network-firewall:us- east-1:123456789011:stateless-rulegroup/test\",\"prio rity\":1}],\"networkFirewallStatelessDefaultActions\" :[\"aws:forward_to_sfe\",\"customActionName\"],\"netw orkFirewallStatelessFragmentDefaultActions\":[\"aws:f orward_to_sfe\",\"customActionName\"],\"networkFirewa llStatelessCustomActions\":[{\"actionName\":\"customA ctionName\",\"actionDefinition\":{\"publishMetricActi on\":{\"dimensions\":[{\"value\":\"metricdimensionval ue\"}]}}}],\"networkFirewallStatefulRuleGroupReferenc es\":[{\"resourceARN\":\"arn:aws:network-firewall:us- east-1:123456789011:stateful-rulegroup/test\"}],\"net workFirewallOrchestrationConfig\":{\"singleFirewallEn dpointPerVPC\":false,\"allowedIPV4CidrList\":[\"10.0. 0.0/28\",\"192.168.0.0/28\"],\"routeManagementAction\ ":\"MONITOR\",\"routeManagementTargetTypes\":[\"Inter netGateway\"]},\"networkFirewallLoggingConfiguration\ ":{\"logDestinationConfigs\":[{\"logDestinationType\" :\"S3\",\"logType\":\"ALERT\",\"logDestination\":{\"b ucketName\":\"s3-bucket- name\"}},{\"logDestinationType\":\"S3\",\"logType\": \"FLOW\",\"logDestination\":{\"bucketName\":\"s3 -bucket-name\"}}],\"overrideExistingConfig\":true}}"" To use the distributed deployment model, you must set PolicyOption to "NULL". * Example: "NETWORK_FIREWALL" - Distributed deployment model with custom Availability Zone configuration ""{ \"type\":\"NETWORK_FIREWALL\",\"networkFirewallStatel essRuleGroupReferences\":[{\"resourceARN\":\"arn:aws :network-firewall:us-east-1:123456789011:stateless-ru legroup/test\",\"priority\":1}],\"networkFirewallStat elessDefaultActions\":[\"aws:forward_to_sfe\",\"custo mActionName\"],\"networkFirewallStatelessFragmentDefa ultActions\":[\"aws:forward_to_sfe\",\"fragmentcustom actionname\"],\"networkFirewallStatelessCustomActions \":[{\"actionName\":\"customActionName\", \"actionDef inition\":{\"publishMetricAction\":{\"dimensions\":[{ \"value\":\"metricdimensionvalue\"}]}}},{\"actionName \":\"fragmentcustomactionname\",\"actionDefinition\": {\"publishMetricAction\":{\"dimensions\":[{\"value\": \"fragmentmetricdimensionvalue\"}]}}}],\"networkFirew allStatefulRuleGroupReferences\":[{\"resourceARN\":\" arn:aws:network-firewall:us-east-1:123456789011 :stateful-rulegroup/test\"}],\"networkFirewallOrchest rationConfig\":{\"firewallCreationConfig\":{ \"endpoi ntLocation\":{\"availabilityZoneConfigList\":[{\"avai labilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrLi st\":[\"10.0.0.0/28\"]},{\"availabilityZoneName \":\"us-east-1b\",\"allowedIPV4CidrList\":[ \"10.0.0.0/28\"]}]} },\"singleFirewallEndpointPerVPC\ ":false,\"allowedIPV4CidrList\":null,\"routeManagemen tAction\":\"OFF\",\"networkFirewallLoggingConfigurati on\":{\"logDestinationConfigs\":[{\"logDestinationTyp e\":\"S3\",\"logType\":\"ALERT\",\"logDestination\":{ \"bucketName\":\"s3-bucket-name\"}},{\"logDestination Type\":\"S3\",\"logType\":\"FLOW\",\"logDestination\" :{\"bucketName\":\"s3-bucket- name\"}}],\"overrideExistingConfig\":boolean}}"" With custom Availability Zone configuration, you define which specific Availability Zones to create endpoints in by configuring "firewallCreationConfig". To configure the Availability Zones in "firewallCreationConfig", specify either the "availabilityZoneName" or "availabilityZoneId" parameter, not both parameters. To use the distributed deployment model, you must set PolicyOption to "NULL". * Example: "NETWORK_FIREWALL" - Distributed deployment model with custom Availability Zone configuration and route management ""{\"type\":\"NETWORK_FIREWALL\",\"n etworkFirewallStatelessRuleGroupReferences\":[{\"reso urceARN\":\"arn:aws:network-firewall:us- east-1:123456789011:stateless-rulegroup/test\",\"prio rity\":1}],\"networkFirewallStatelessDefaultActions\" :[\"aws:forward_to_sfe\",\"customActionName\"],\"netw orkFirewallStatelessFragmentDefaultActions\":[\"aws:f orward_to_sfe\",\"fragmentcustomactionname\"],\"netwo rkFirewallStatelessCustomActions\":[{\"actionName\":\ "customActionName\",\"actionDefinition\":{\"publishMe tricAction\":{\"dimensions\":[{\"value\":\"metricdime nsionvalue\"}]}}},{\"actionName\":\"fragmentcustomact ionname\",\"actionDefinition\":{\"publishMetricAction \":{\"dimensions\":[{\"value\":\"fragmentmetricdimens ionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupRe ferences\":[{\"resourceARN\":\"arn:aws:network- firewall:us-east-1:123456789011:stateful-rulegroup/te st\"}],\"networkFirewallOrchestrationConfig\":{\"fire wallCreationConfig\":{\"endpointLocation\":{\"availab ilityZoneConfigList\":[{\"availabilityZoneName\":\"us- east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}, {\"availabilityZoneName\":\"us-east-1b\",\"allowedIPV 4CidrList\":[\"10.0.0.0/28\"]}]}},\"singleFirewallEnd pointPerVPC\":false,\"allowedIPV4CidrList\":null,\"ro uteManagementAction\":\"MONITOR\",\"routeManagementTa rgetTypes\":[\"InternetGateway\"],\"routeManagementCo nfig\":{\"allowCrossAZTrafficIfNoEndpoint\":true}},\" networkFirewallLoggingConfiguration\":{\"logDestinati onConfigs\":[{\"logDestinationType\":\"S3\",\"logType \":\"ALERT\",\"logDestination\":{\"bucketName\":\"s3 -bucket-name\"}},{\"logDestinationType\":\"S3\",\"log Type\":\"FLOW\",\"logDestination\":{\"bucketName\":\" s3-bucket- name\"}}],\"overrideExistingConfig\":boolean}}"" To use the distributed deployment model, you must set PolicyOption to "NULL". * Example: "SECURITY_GROUPS_COMMON" ""{\"type\":\"SECUR ITY_GROUPS_COMMON\",\"securityGroups\":[{\"id\":\"sg- 03b1f67d69ed00197\"}],\"revertManualSecurityGroupChan ges\":true,\"exclusiveResourceSecurityGroupManagement \":true,\"applyToAllEC2InstanceENIs\":false,\"include SharedVPC\":true,\"enableSecurityGroupReferencesDistr ibution\":true}"" * Example: "SECURITY_GROUPS_COMMON" - Security group tag distribution """{\"type\":\"SECURITY_GROUPS_COMMON\", \"securityGroups\":[{\"id\":\"sg-000e55995d61a06bd\"} ],\"revertManualSecurityGroupChanges\":true,\"exclusi veResourceSecurityGroupManagement\":false,\"applyToAl lEC2InstanceENIs\":false,\"includeSharedVPC\":false,\ "enableTagDistribution\":true}""" Firewall Manager automatically distributes tags from the primary group to the security groups created by this policy. To use security group tag distribution, you must also set "revertManualSecurityGroupChanges" to "true", otherwise Firewall Manager won't be able to create the policy. When you enable "revertManualSecurityGroupChanges", Firewall Manager identifies and reports when the security groups created by this policy become non-compliant. Firewall Manager won't distribute system tags added by Amazon Web Services services into the replica security groups. System tags begin with the "aws:" prefix. * Example: Shared VPCs. Apply the preceding policy to resources in shared VPCs as well as to those in VPCs that the account owns ""{\"type\":\"SECURITY_GROUPS_C OMMON\",\"revertManualSecurityGroupChanges\":false,\" exclusiveResourceSecurityGroupManagement\":false, \"a pplyToAllEC2InstanceENIs\":false,\"includeSharedVPC\" :true,\"securityGroups\":[{\"id\":\" sg- 000e55995d61a06bd\"}]}"" * Example: "SECURITY_GROUPS_CONTENT_AUDIT" ""{\"type\": \"SECURITY_GROUPS_CONTENT_AUDIT\",\"preManagedOptions \":[{\"denyProtocolAllValue\":true},{\"auditSgDirecti on\":{\"type\":\"ALL\"}}],\"securityGroups\":[{\"id \":\"sg-049b2393a25468971\"}],\"securityGroupAction\" :{\"type\":\"ALLOW\"}}"" The security group action for content audit can be "ALLOW" or "DENY". For "ALLOW", all in-scope security group rules must be within the allowed range of the policy's security group rules. For "DENY", all in-scope security group rules must not contain a value or a range that matches a rule value or range in the policy security group. * Example: "SECURITY_GROUPS_USAGE_AUDIT" ""{\"type\":\" SECURITY_GROUPS_USAGE_AUDIT\",\"deleteUnusedSecurityG roups\":true,\"coalesceRedundantSecurityGroups\":true ,\"optionalDelayForUnusedInMinutes\":60}"" * Example: "SHIELD_ADVANCED" with web ACL management "" {\"type\":\"SHIELD_ADVANCED\",\"optimizeUnassociatedW ebACL\":true}"" If you set "optimizeUnassociatedWebACL" to "true", Firewall Manager creates web ACLs in accounts within the policy scope if the web ACLs will be used by at least one resource. Firewall Manager creates web ACLs in the accounts within policy scope only if the web ACLs will be used by at least one resource. If at any time an account comes into policy scope, Firewall Manager automatically creates a web ACL in the account if at least one resource will use the web ACL. Upon enablement, Firewall Manager performs a one-time cleanup of unused web ACLs in your account. The cleanup process can take several hours. If a resource leaves policy scope after Firewall Manager creates a web ACL, Firewall Manager doesn't disassociate the resource from the web ACL. If you want Firewall Manager to clean up the web ACL, you must first manually disassociate the resources from the web ACL, and then enable the manage unused web ACLs option in your policy. If you set "optimizeUnassociatedWebACL" to "false", and Firewall Manager automatically creates an empty web ACL in each account that's within policy scope. * Specification for "SHIELD_ADVANCED" for Amazon CloudFront distributions ""{\"type\":\"SHIELD_ADVANCE D\",\"automaticResponseConfiguration\": {\"automaticR esponseStatus\":\"ENABLED|IGNORED|DISABLED\", \"automaticResponseAction\":\"BLOCK|COUNT\"}, \"overrideCustomerWebaclClassic\":true|false, \"optimizeUnassociatedWebACL\":true|false}"" For example: ""{\"type\":\"SHIELD_ADVANCED\",\"automaticR esponseConfiguration\": {\"automaticResponseStatus\":\"ENABLED\", \"automaticResponseAction\":\"COUNT\"}}"" The default value for "automaticResponseStatus" is "IGNORED". The value for "automaticResponseAction" is only required when "automaticResponseStatus" is set to "ENABLED". The default value for "overrideCustomerWebaclClassic" is "false". For other resource types that you can protect with a Shield Advanced policy, this "ManagedServiceData" configuration is an empty string. * Example: "THIRD_PARTY_FIREWALL" Replace "THIRD_PARTY_FIREWALL_NAME" with the name of the third-party firewall. ""{ "type":"THIRD_PARTY_FIREWALL", "thirdPartyFirewall":"THIRD_PARTY_FIREWALL_NAME", "thirdPartyFirewallConfig":{ "thirdPartyFirewallPolicyList":["global-1"] }, "firewallDeploymentModel":{ "distributedFirewallDeploymentModel":{ "distributedFirewallOrchestrationConfig":{ "firewallCreationConfig":{ "endpointLocation":{ "availabilityZoneConfigList":[ { "availabilityZoneName":"${AvailabilityZone}" } ] } }, "allowedIPV4CidrList":[ ] } } } }"" * Example: "WAFV2" - Account takeover prevention, Bot Control managed rule groups, optimize unassociated web ACL, and rule action override ""{\"type\":\"WAFV2\",\ "preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"ove rrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupI dentifier\":{\"versionEnabled\":null,\"version\":null ,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AW SManagedRulesATPRuleSet\",\"managedRuleGroupConfigs\" :[{\"awsmanagedRulesATPRuleSet\":{\"loginPath\":\"/lo ginpath\",\"requestInspection\":{\"payloadType\":\"FO RM_ENCODED|JSON\",\"usernameField\":{\"identifier\":\ "/form/username\"},\"passwordField\":{\"identifier\": \"/form/password\"}}}}]},\"ruleGroupType\":\"ManagedR uleGroup\",\"excludeRules\":[],\"sampledRequestsEnabl ed\":true},{\"ruleGroupArn\":null,\"overrideAction\": {\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\ "versionEnabled\":null,\"version\":null,\"vendorName\ ":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesB otControlRuleSet\",\"managedRuleGroupConfigs\":[{\"aw smanagedRulesBotControlRuleSet\":{\"inspectionLevel\" :\"TARGETED|COMMON\"}}]},\"ruleGroupType\":\"ManagedR uleGroup\",\"excludeRules\":[],\"sampledRequestsEnabl ed\":true,\"ruleActionOverrides\":[{\"name\":\"Rule1\ ",\"actionToUse\":{\"allow|block|count|captcha|challe nge\":{}}},{\"name\":\"Rule2\",\"actionToUse\":{\"all ow|block|count|captcha|challenge\":{}}}]}],\"postProc essRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLO W\"},\"customRequestHandling\":null,\"customResponse\ ":null,\"overrideCustomerWebACLAssociation\":false,\" loggingConfiguration\":null,\"sampledRequestsEnabledF orDefaultActions\":true,\"optimizeUnassociatedWebACL\ ":true}"" * Bot Control - For information about "AWSManagedRulesBotControlRuleSet" managed rule groups, see AWSManagedRulesBotControlRuleSet in the *WAF API Reference*. * Fraud Control account takeover prevention (ATP) - For information about the properties available for "AWSManagedRulesATPRuleSet" managed rule groups, see AWSManagedRulesATPRuleSet in the *WAF API Reference*. * Optimize unassociated web ACL - If you set "optimizeUnassociatedWebACL" to "true", Firewall Manager creates web ACLs in accounts within the policy scope if the web ACLs will be used by at least one resource. Firewall Manager creates web ACLs in the accounts within policy scope only if the web ACLs will be used by at least one resource. If at any time an account comes into policy scope, Firewall Manager automatically creates a web ACL in the account if at least one resource will use the web ACL. Upon enablement, Firewall Manager performs a one-time cleanup of unused web ACLs in your account. The cleanup process can take several hours. If a resource leaves policy scope after Firewall Manager creates a web ACL, Firewall Manager disassociates the resource from the web ACL, but won't clean up the unused web ACL. Firewall Manager only cleans up unused web ACLs when you first enable management of unused web ACLs in a policy. If you set "optimizeUnassociatedWebACL" to "false" Firewall Manager doesn't manage unused web ACLs, and Firewall Manager automatically creates an empty web ACL in each account that's within policy scope. * Rule action overrides - Firewall Manager supports rule action overrides only for managed rule groups. To configure a "RuleActionOverrides" add the "Name" of the rule to override, and "ActionToUse", which is the new action to use for the rule. For information about using rule action override, see RuleActionOverride in the *WAF API Reference*. * Example: "WAFV2" - "CAPTCHA" and "Challenge" configs ""{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ru leGroupArn\":null,\"overrideAction\":{\"type\":\"NONE \"},\"managedRuleGroupIdentifier\":{\"versionEnabled\ ":null,\"version\":null,\"vendorName\":\"AWS\",\"mana gedRuleGroupName\":\"AWSManagedRulesAdminProtectionRu leSet\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"exc ludeRules\":[],\"sampledRequestsEnabled\":true}],\"po stProcessRuleGroups\":[],\"defaultAction\":{\"type\": \"ALLOW\"},\"customRequestHandling\":null,\"customRes ponse\":null,\"overrideCustomerWebACLAssociation\":fa lse,\"loggingConfiguration\":null,\"sampledRequestsEn abledForDefaultActions\":true,\"captchaConfig\":{\"im munityTimeProperty\":{\"immunityTime\":500}},\"challe ngeConfig\":{\"immunityTimeProperty\":{\"immunityTime \":800}},\"tokenDomains\":[\"google.com\",\"amazon.co m\"],\"associationConfig\":{\"requestBody\":{\"CLOUDF RONT\":{\"defaultSizeInspectionLimit\":\"KB_16\"}}}}"" * "CAPTCHA" and "Challenge" configs - If you update the policy's values for "associationConfig", "captchaConfig", "challengeConfig", or "tokenDomains", Firewall Manager will overwrite your local web ACLs to contain the new value(s). However, if you don't update the policy's "associationConfig", "captchaConfig", "challengeConfig", or "tokenDomains" values, the values in your local web ACLs will remain unchanged. For information about association configs, see AssociationConfig. For information about CAPTCHA and Challenge configs, see CaptchaConfig and ChallengeConfig in the *WAF API Reference*. * "defaultSizeInspectionLimit" - Specifies the maximum size of the web request body component that an associated Amazon CloudFront distribution should send to WAF for inspection. For more information, see DefaultSizeInspectionLimit in the *WAF API Reference*. * Example: "WAFV2" - Firewall Manager support for WAF managed rule group versioning ""{\"preProcessRuleGrou ps\":[{\"ruleGroupType\":\"ManagedRuleGroup\",\"overr ideAction\":{\"type\":\"NONE\"},\"sampledRequestsEnab led\":true,\"managedRuleGroupIdentifier\":{\"managedR uleGroupName\":\"AWSManagedRulesAdminProtectionRuleSe t\",\"vendorName\":\"AWS\",\"managedRuleGroupConfigs\ ":null}}],\"postProcessRuleGroups\":[],\"defaultActio n\":{\"type\":\"ALLOW\"},\"customRequestHandling\":nu ll,\"tokenDomains\":null,\"customResponse\":null,\"ty pe\":\"WAFV2\",\"overrideCustomerWebACLAssociation\": false,\"sampledRequestsEnabledForDefaultActions\":tru e,\"optimizeUnassociatedWebACL\":true,\"webACLSource\ ":\"RETROFIT_EXISTING\"}"" To use a specific version of a WAF managed rule group in your Firewall Manager policy, you must set "versionEnabled" to "true", and set "version" to the version you'd like to use. If you don't set "versionEnabled" to "true", or if you omit "versionEnabled", then Firewall Manager uses the default version of the WAF managed rule group. * Example: "WAFV2" - Logging configurations ""{\"type\" :\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\ ":null, \"overrideAction\":{\"type\":\"NONE\"},\"mana gedRuleGroupIdentifier\": {\"versionEnabled\":null,\" version\":null,\"vendorName\":\"AWS\", \"managedRuleG roupName\":\"AWSManagedRulesAdminProtectionRuleSet\"} ,\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRule s\":[], \"sampledRequestsEnabled\":true}],\"postProce ssRuleGroups\":[], \"defaultAction\":{\"type\":\"ALLO W\"},\"customRequestHandling\" :null,\"customResponse \":null,\"overrideCustomerWebACLAssociation\" :false, \"loggingConfiguration\":{\"logDestinationConfigs\": [\"arn:aws:s3:::aws-waf-logs-example-bucket\"] ,\"red actedFields\":[],\"loggingFilterConfigs\":{\"defaultB ehavior\":\"KEEP\", \"filters\":[{\"behavior\":\"KEEP \",\"requirement\":\"MEETS_ALL\", \"conditions\":[{\" actionCondition\":\"CAPTCHA\"},{\"actionCondition\": \"CHALLENGE\"}, {\"actionCondition\":\"EXCLUDED_AS_CO UNT\"}]}]}},\"sampledRequestsEnabledForDefaultActions \":true}"" Firewall Manager supports Amazon Kinesis Data Firehose and Amazon S3 as the "logDestinationConfigs" in your "loggingConfiguration". For information about WAF logging configurations, see LoggingConfiguration in the *WAF API Reference* In the "loggingConfiguration", you can specify one "logDestinationConfigs". Optionally provide as many as 20 "redactedFields". The "RedactedFieldType" must be one of "URI", "QUERY_STRING", "HEADER", or "METHOD". * Example: "WAF Classic" ""{\"ruleGroups\":[{\"id\":\"78cb36c0-1b5e-4d7d-82b2- cf48d3ad9659\",\"overrideAction\":{\"type\":\"NONE\"} }],\"overrideCustomerWebACLAssociation\":true,\"defau ltAction\":{\"type\":\"ALLOW\"},\"type\":\"WAF\"}"" * **PolicyOption** *(dict) --* Contains the settings to configure a network ACL policy, a Network Firewall firewall policy deployment model, or a third-party firewall policy. * **NetworkFirewallPolicy** *(dict) --* Defines the deployment model to use for the firewall policy. * **FirewallDeploymentModel** *(string) --* Defines the deployment model to use for the firewall policy. To use a distributed model, set PolicyOption to "NULL". * **ThirdPartyFirewallPolicy** *(dict) --* Defines the policy options for a third-party firewall policy. * **FirewallDeploymentModel** *(string) --* Defines the deployment model to use for the third- party firewall policy. * **NetworkAclCommonPolicy** *(dict) --* Defines a Firewall Manager network ACL policy. * **NetworkAclEntrySet** *(dict) --* The definition of the first and last rules for the network ACL policy. * **FirstEntries** *(list) --* The rules that you want to run first in the Firewall Manager managed network ACLs. Note: Provide these in the order in which you want them to run. Firewall Manager will assign the specific rule numbers for you, in the network ACLs that it creates. You must specify at least one first entry or one last entry in any network ACL policy. * *(dict) --* Describes a rule in a network ACL. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the network ACL, Amazon Web Services processes the entries in the network ACL according to the rule numbers, in ascending order. When you manage an individual network ACL, you explicitly specify the rule numbers. When you specify the network ACL rules in a Firewall Manager policy, you provide the rules to run first, in the order that you want them to run, and the rules to run last, in the order that you want them to run. Firewall Manager assigns the rule numbers for you when you save the network ACL policy specification. * **IcmpTypeCode** *(dict) --* ICMP protocol: The ICMP type and code. * **Code** *(integer) --* ICMP code. * **Type** *(integer) --* ICMP type. * **Protocol** *(string) --* The protocol number. A value of "-1" means all protocols. * **PortRange** *(dict) --* TCP or UDP protocols: The range of ports the rule applies to. * **From** *(integer) --* The beginning port number of the range. * **To** *(integer) --* The ending port number of the range. * **CidrBlock** *(string) --* The IPv4 network range to allow or deny, in CIDR notation. * **Ipv6CidrBlock** *(string) --* The IPv6 network range to allow or deny, in CIDR notation. * **RuleAction** *(string) --* Indicates whether to allow or deny the traffic that matches the rule. * **Egress** *(boolean) --* Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). If it's not an egress rule, then it's an ingress, or inbound, rule. * **ForceRemediateForFirstEntries** *(boolean) --* Applies only when remediation is enabled for the policy as a whole. Firewall Manager uses this setting when it finds policy violations that involve conflicts between the custom entries and the policy entries. If forced remediation is disabled, Firewall Manager marks the network ACL as noncompliant and does not try to remediate. For more information about the remediation behavior, see Remediation for managed network ACLs in the *Firewall Manager Developer Guide*. * **LastEntries** *(list) --* The rules that you want to run last in the Firewall Manager managed network ACLs. Note: Provide these in the order in which you want them to run. Firewall Manager will assign the specific rule numbers for you, in the network ACLs that it creates. You must specify at least one first entry or one last entry in any network ACL policy. * *(dict) --* Describes a rule in a network ACL. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the network ACL, Amazon Web Services processes the entries in the network ACL according to the rule numbers, in ascending order. When you manage an individual network ACL, you explicitly specify the rule numbers. When you specify the network ACL rules in a Firewall Manager policy, you provide the rules to run first, in the order that you want them to run, and the rules to run last, in the order that you want them to run. Firewall Manager assigns the rule numbers for you when you save the network ACL policy specification. * **IcmpTypeCode** *(dict) --* ICMP protocol: The ICMP type and code. * **Code** *(integer) --* ICMP code. * **Type** *(integer) --* ICMP type. * **Protocol** *(string) --* The protocol number. A value of "-1" means all protocols. * **PortRange** *(dict) --* TCP or UDP protocols: The range of ports the rule applies to. * **From** *(integer) --* The beginning port number of the range. * **To** *(integer) --* The ending port number of the range. * **CidrBlock** *(string) --* The IPv4 network range to allow or deny, in CIDR notation. * **Ipv6CidrBlock** *(string) --* The IPv6 network range to allow or deny, in CIDR notation. * **RuleAction** *(string) --* Indicates whether to allow or deny the traffic that matches the rule. * **Egress** *(boolean) --* Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). If it's not an egress rule, then it's an ingress, or inbound, rule. * **ForceRemediateForLastEntries** *(boolean) --* Applies only when remediation is enabled for the policy as a whole. Firewall Manager uses this setting when it finds policy violations that involve conflicts between the custom entries and the policy entries. If forced remediation is disabled, Firewall Manager marks the network ACL as noncompliant and does not try to remediate. For more information about the remediation behavior, see Remediation for managed network ACLs in the *Firewall Manager Developer Guide*. * **ResourceType** *(string) --* The type of resource protected by or in scope of the policy. This is in the format shown in the Amazon Web Services Resource Types Reference. To apply this policy to multiple resource types, specify a resource type of "ResourceTypeList" and then specify the resource types in a "ResourceTypeList". The following are valid resource types for each Firewall Manager policy type: * Amazon Web Services WAF Classic - "AWS::ApiGateway::Stage", "AWS::CloudFront::Distribution", and "AWS::ElasticLoadBalancingV2::LoadBalancer". * WAF - "AWS::ApiGateway::Stage", "AWS::ElasticLoadBalancingV2::LoadBalancer", and "AWS::CloudFront::Distribution". * Shield Advanced - "AWS::ElasticLoadBalancingV2::LoadBalancer", "AWS::ElasticLoadBalancing::LoadBalancer", "AWS::EC2::EIP", and "AWS::CloudFront::Distribution". * Network ACL - "AWS::EC2::Subnet". * Security group usage audit - "AWS::EC2::SecurityGroup". * Security group content audit - "AWS::EC2::SecurityGroup", "AWS::EC2::NetworkInterface", and "AWS::EC2::Instance". * DNS Firewall, Network Firewall, and third-party firewall - "AWS::EC2::VPC". * **ResourceTypeList** *(list) --* An array of "ResourceType" objects. Use this only to specify multiple resource types. To specify a single resource type, use "ResourceType". * *(string) --* * **ResourceTags** *(list) --* An array of "ResourceTag" objects. * *(dict) --* The resource tags that Firewall Manager uses to determine if a particular resource should be included or excluded from the Firewall Manager policy. Tags enable you to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value. If you add more than one tag to a policy, you can specify whether to combine them using the logical AND operator or the logical OR operator. For more information, see Working with Tag Editor. Every resource tag must have a string value, either a non-empty string or an empty string. If you don't provide a value for a resource tag, Firewall Manager saves the value as an empty string: "". When Firewall Manager compares tags, it only matches two tags if they have the same key and the same value. A tag with an empty string value only matches with tags that also have an empty string value. * **Key** *(string) --* The resource tag key. * **Value** *(string) --* The resource tag value. To specify an empty string value, either don't provide this or specify it as "". * **ExcludeResourceTags** *(boolean) --* If set to "True", resources with the tags that are specified in the "ResourceTag" array are not in scope of the policy. If set to "False", and the "ResourceTag" array is not null, only resources with the specified tags are in scope of the policy. * **RemediationEnabled** *(boolean) --* Indicates if the policy should be automatically applied to new resources. * **DeleteUnusedFMManagedResources** *(boolean) --* Indicates whether Firewall Manager should automatically remove protections from resources that leave the policy scope and clean up resources that Firewall Manager is managing for accounts when those accounts leave policy scope. For example, Firewall Manager will disassociate a Firewall Manager managed web ACL from a protected customer resource when the customer resource leaves policy scope. By default, Firewall Manager doesn't remove protections or delete Firewall Manager managed resources. This option is not available for Shield Advanced or WAF Classic policies. * **IncludeMap** *(dict) --* Specifies the Amazon Web Services account IDs and Organizations organizational units (OUs) to include in the policy. Specifying an OU is the equivalent of specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time. You can specify inclusions or exclusions, but not both. If you specify an "IncludeMap", Firewall Manager applies the policy to all accounts specified by the "IncludeMap", and does not evaluate any "ExcludeMap" specifications. If you do not specify an "IncludeMap", then Firewall Manager applies the policy to all accounts except for those specified by the "ExcludeMap". You can specify account IDs, OUs, or a combination: * Specify account IDs by setting the key to "ACCOUNT". For example, the following is a valid map: "{“ACCOUNT” : [“accountID1”, “accountID2”]}". * Specify OUs by setting the key to "ORG_UNIT". For example, the following is a valid map: "{“ORG_UNIT” : [“ouid111”, “ouid112”]}". * Specify accounts and OUs together in a single map, separated with a comma. For example, the following is a valid map: "{“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}". * *(string) --* * *(list) --* * *(string) --* * **ExcludeMap** *(dict) --* Specifies the Amazon Web Services account IDs and Organizations organizational units (OUs) to exclude from the policy. Specifying an OU is the equivalent of specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time. You can specify inclusions or exclusions, but not both. If you specify an "IncludeMap", Firewall Manager applies the policy to all accounts specified by the "IncludeMap", and does not evaluate any "ExcludeMap" specifications. If you do not specify an "IncludeMap", then Firewall Manager applies the policy to all accounts except for those specified by the "ExcludeMap". You can specify account IDs, OUs, or a combination: * Specify account IDs by setting the key to "ACCOUNT". For example, the following is a valid map: "{“ACCOUNT” : [“accountID1”, “accountID2”]}". * Specify OUs by setting the key to "ORG_UNIT". For example, the following is a valid map: "{“ORG_UNIT” : [“ouid111”, “ouid112”]}". * Specify accounts and OUs together in a single map, separated with a comma. For example, the following is a valid map: "{“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}". * *(string) --* * *(list) --* * *(string) --* * **ResourceSetIds** *(list) --* The unique identifiers of the resource sets used by the policy. * *(string) --* * **PolicyDescription** *(string) --* Your description of the Firewall Manager policy. * **PolicyStatus** *(string) --* Indicates whether the policy is in or out of an admin's policy or Region scope. * "ACTIVE" - The administrator can manage and delete the policy. * "OUT_OF_ADMIN_SCOPE" - The administrator can view the policy, but they can't edit or delete the policy. Existing policy protections stay in place. Any new resources that come into scope of the policy won't be protected. * **ResourceTagLogicalOperator** *(string) --* Specifies whether to combine multiple resource tags with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. Default: "AND" * **PolicyArn** *(string) --* The Amazon Resource Name (ARN) of the policy. **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.LimitExceededException" * "FMS.Client.exceptions.InternalErrorException" * "FMS.Client.exceptions.InvalidTypeException" FMS / Client / list_member_accounts list_member_accounts ******************** FMS.Client.list_member_accounts(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.list_member_accounts( NextToken='string', MaxResults=123 ) Parameters: * **NextToken** (*string*) -- If you specify a value for "MaxResults" and you have more account IDs than the number that you specify for "MaxResults", Firewall Manager returns a "NextToken" value in the response that allows you to list another group of IDs. For the second and subsequent "ListMemberAccountsRequest" requests, specify the value of "NextToken" from the previous response to get information about another batch of member account IDs. * **MaxResults** (*integer*) -- Specifies the number of member account IDs that you want Firewall Manager to return for this request. If you have more IDs than the number that you specify for "MaxResults", the response includes a "NextToken" value that you can use to get another batch of member account IDs. Return type: dict Returns: **Response Syntax** { 'MemberAccounts': [ 'string', ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **MemberAccounts** *(list) --* An array of account IDs. * *(string) --* * **NextToken** *(string) --* If you have more member account IDs than the number that you specified for "MaxResults" in the request, the response includes a "NextToken" value. To list more IDs, submit another "ListMemberAccounts" request, and specify the "NextToken" value from the response in the "NextToken" value in the next request. **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / get_compliance_detail get_compliance_detail ********************* FMS.Client.get_compliance_detail(**kwargs) Returns detailed compliance information about the specified member account. Details include resources that are in and out of compliance with the specified policy. The reasons for resources being considered compliant depend on the Firewall Manager policy type. See also: AWS API Documentation **Request Syntax** response = client.get_compliance_detail( PolicyId='string', MemberAccount='string' ) Parameters: * **PolicyId** (*string*) -- **[REQUIRED]** The ID of the policy that you want to get the details for. "PolicyId" is returned by "PutPolicy" and by "ListPolicies". * **MemberAccount** (*string*) -- **[REQUIRED]** The Amazon Web Services account that owns the resources that you want to get the details for. Return type: dict Returns: **Response Syntax** { 'PolicyComplianceDetail': { 'PolicyOwner': 'string', 'PolicyId': 'string', 'MemberAccount': 'string', 'Violators': [ { 'ResourceId': 'string', 'ViolationReason': 'WEB_ACL_MISSING_RULE_GROUP'|'RESOURCE_MISSING_WEB_ACL'|'RESOURCE_INCORRECT_WEB_ACL'|'RESOURCE_MISSING_SHIELD_PROTECTION'|'RESOURCE_MISSING_WEB_ACL_OR_SHIELD_PROTECTION'|'RESOURCE_MISSING_SECURITY_GROUP'|'RESOURCE_VIOLATES_AUDIT_SECURITY_GROUP'|'SECURITY_GROUP_UNUSED'|'SECURITY_GROUP_REDUNDANT'|'FMS_CREATED_SECURITY_GROUP_EDITED'|'MISSING_FIREWALL'|'MISSING_FIREWALL_SUBNET_IN_AZ'|'MISSING_EXPECTED_ROUTE_TABLE'|'NETWORK_FIREWALL_POLICY_MODIFIED'|'FIREWALL_SUBNET_IS_OUT_OF_SCOPE'|'INTERNET_GATEWAY_MISSING_EXPECTED_ROUTE'|'FIREWALL_SUBNET_MISSING_EXPECTED_ROUTE'|'UNEXPECTED_FIREWALL_ROUTES'|'UNEXPECTED_TARGET_GATEWAY_ROUTES'|'TRAFFIC_INSPECTION_CROSSES_AZ_BOUNDARY'|'INVALID_ROUTE_CONFIGURATION'|'MISSING_TARGET_GATEWAY'|'INTERNET_TRAFFIC_NOT_INSPECTED'|'BLACK_HOLE_ROUTE_DETECTED'|'BLACK_HOLE_ROUTE_DETECTED_IN_FIREWALL_SUBNET'|'RESOURCE_MISSING_DNS_FIREWALL'|'ROUTE_HAS_OUT_OF_SCOPE_ENDPOINT'|'FIREWALL_SUBNET_MISSING_VPCE_ENDPOINT'|'INVALID_NETWORK_ACL_ENTRY'|'WEB_ACL_CONFIGURATION_OR_SCOPE_OF_USE', 'ResourceType': 'string', 'Metadata': { 'string': 'string' } }, ], 'EvaluationLimitExceeded': True|False, 'ExpiredAt': datetime(2015, 1, 1), 'IssueInfoMap': { 'string': 'string' } } } **Response Structure** * *(dict) --* * **PolicyComplianceDetail** *(dict) --* Information about the resources and the policy that you specified in the "GetComplianceDetail" request. * **PolicyOwner** *(string) --* The Amazon Web Services account that created the Firewall Manager policy. * **PolicyId** *(string) --* The ID of the Firewall Manager policy. * **MemberAccount** *(string) --* The Amazon Web Services account ID. * **Violators** *(list) --* An array of resources that aren't protected by the WAF or Shield Advanced policy or that aren't in compliance with the security group policy. * *(dict) --* Details of the resource that is not protected by the policy. * **ResourceId** *(string) --* The resource ID. * **ViolationReason** *(string) --* The reason that the resource is not protected by the policy. * **ResourceType** *(string) --* The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. For example: "AWS::ElasticLoadBalancingV2::LoadBalancer", "AWS::CloudFront::Distribution", or "AWS::NetworkFirewall::FirewallPolicy". * **Metadata** *(dict) --* Metadata about the resource that doesn't comply with the policy scope. * *(string) --* * *(string) --* * **EvaluationLimitExceeded** *(boolean) --* Indicates if over 100 resources are noncompliant with the Firewall Manager policy. * **ExpiredAt** *(datetime) --* A timestamp that indicates when the returned information should be considered out of date. * **IssueInfoMap** *(dict) --* Details about problems with dependent services, such as WAF or Config, and the error message received that indicates the problem with the service. * *(string) --* * *(string) --* **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InternalErrorException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.InvalidOperationException" FMS / Client / get_paginator get_paginator ************* FMS.Client.get_paginator(operation_name) Create a paginator for an operation. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Raises: **OperationNotPageableError** -- Raised if the operation is not pageable. You can use the "client.can_paginate" method to check if an operation is pageable. Return type: "botocore.paginate.Paginator" Returns: A paginator object. FMS / Client / list_admin_accounts_for_organization list_admin_accounts_for_organization ************************************ FMS.Client.list_admin_accounts_for_organization(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.list_admin_accounts_for_organization( NextToken='string', MaxResults=123 ) Parameters: * **NextToken** (*string*) -- When you request a list of objects with a "MaxResults" setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a "NextToken" value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. * **MaxResults** (*integer*) -- The maximum number of objects that you want Firewall Manager to return for this request. If more objects are available, in the response, Firewall Manager provides a "NextToken" value that you can use in a subsequent call to get the next batch of objects. Return type: dict Returns: **Response Syntax** { 'AdminAccounts': [ { 'AdminAccount': 'string', 'DefaultAdmin': True|False, 'Status': 'ONBOARDING'|'ONBOARDING_COMPLETE'|'OFFBOARDING'|'OFFBOARDING_COMPLETE' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **AdminAccounts** *(list) --* A list of Firewall Manager administrator accounts within the organization that were onboarded as administrators by AssociateAdminAccount or PutAdminAccount. * *(dict) --* Contains high level information about the Firewall Manager administrator account. * **AdminAccount** *(string) --* The Amazon Web Services account ID of the Firewall Manager administrator's account. * **DefaultAdmin** *(boolean) --* A boolean value that indicates if the administrator is the default administrator. If true, then this is the default administrator account. The default administrator can manage third-party firewalls and has full administrative scope. There is only one default administrator account per organization. For information about Firewall Manager default administrator accounts, see Managing Firewall Manager administrators in the *Firewall Manager Developer Guide*. * **Status** *(string) --* The current status of the request to onboard a member account as an Firewall Manager administrator. * "ONBOARDING" - The account is onboarding to Firewall Manager as an administrator. * "ONBOARDING_COMPLETE" - Firewall Manager The account is onboarded to Firewall Manager as an administrator, and can perform actions on the resources defined in their AdminScope. * "OFFBOARDING" - The account is being removed as an Firewall Manager administrator. * "OFFBOARDING_COMPLETE" - The account has been removed as an Firewall Manager administrator. * **NextToken** *(string) --* When you request a list of objects with a "MaxResults" setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a "NextToken" value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InternalErrorException" * "FMS.Client.exceptions.LimitExceededException" FMS / Client / delete_resource_set delete_resource_set ******************* FMS.Client.delete_resource_set(**kwargs) Deletes the specified ResourceSet. See also: AWS API Documentation **Request Syntax** response = client.delete_resource_set( Identifier='string' ) Parameters: **Identifier** (*string*) -- **[REQUIRED]** A unique identifier for the resource set, used in a request to refer to the resource set. Returns: None **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" * "FMS.Client.exceptions.InvalidInputException" FMS / Client / get_third_party_firewall_association_status get_third_party_firewall_association_status ******************************************* FMS.Client.get_third_party_firewall_association_status(**kwargs) The onboarding status of a Firewall Manager admin account to third- party firewall vendor tenant. See also: AWS API Documentation **Request Syntax** response = client.get_third_party_firewall_association_status( ThirdPartyFirewall='PALO_ALTO_NETWORKS_CLOUD_NGFW'|'FORTIGATE_CLOUD_NATIVE_FIREWALL' ) Parameters: **ThirdPartyFirewall** (*string*) -- **[REQUIRED]** The name of the third-party firewall vendor. Return type: dict Returns: **Response Syntax** { 'ThirdPartyFirewallStatus': 'ONBOARDING'|'ONBOARD_COMPLETE'|'OFFBOARDING'|'OFFBOARD_COMPLETE'|'NOT_EXIST', 'MarketplaceOnboardingStatus': 'NO_SUBSCRIPTION'|'NOT_COMPLETE'|'COMPLETE' } **Response Structure** * *(dict) --* * **ThirdPartyFirewallStatus** *(string) --* The current status for setting a Firewall Manager policy administrators account as an administrator of the third- party firewall tenant. * "ONBOARDING" - The Firewall Manager policy administrator is being designated as a tenant administrator. * "ONBOARD_COMPLETE" - The Firewall Manager policy administrator is designated as a tenant administrator. * "OFFBOARDING" - The Firewall Manager policy administrator is being removed as a tenant administrator. * "OFFBOARD_COMPLETE" - The Firewall Manager policy administrator has been removed as a tenant administrator. * "NOT_EXIST" - The Firewall Manager policy administrator doesn't exist as a tenant administrator. * **MarketplaceOnboardingStatus** *(string) --* The status for subscribing to the third-party firewall vendor in the Amazon Web Services Marketplace. * "NO_SUBSCRIPTION" - The Firewall Manager policy administrator isn't subscribed to the third-party firewall service in the Amazon Web Services Marketplace. * "NOT_COMPLETE" - The Firewall Manager policy administrator is in the process of subscribing to the third-party firewall service in the Amazon Web Services Marketplace, but doesn't yet have an active subscription. * "COMPLETE" - The Firewall Manager policy administrator has an active subscription to the third-party firewall service in the Amazon Web Services Marketplace. **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / can_paginate can_paginate ************ FMS.Client.can_paginate(operation_name) Check if an operation can be paginated. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Returns: "True" if the operation can be paginated, "False" otherwise. FMS / Client / list_apps_lists list_apps_lists *************** FMS.Client.list_apps_lists(**kwargs) Returns an array of "AppsListDataSummary" objects. See also: AWS API Documentation **Request Syntax** response = client.list_apps_lists( DefaultLists=True|False, NextToken='string', MaxResults=123 ) Parameters: * **DefaultLists** (*boolean*) -- Specifies whether the lists to retrieve are default lists owned by Firewall Manager. * **NextToken** (*string*) -- If you specify a value for "MaxResults" in your list request, and you have more objects than the maximum, Firewall Manager returns this token in the response. For all but the first request, you provide the token returned by the prior request in the request parameters, to retrieve the next batch of objects. * **MaxResults** (*integer*) -- **[REQUIRED]** The maximum number of objects that you want Firewall Manager to return for this request. If more objects are available, in the response, Firewall Manager provides a "NextToken" value that you can use in a subsequent call to get the next batch of objects. If you don't specify this, Firewall Manager returns all available objects. Return type: dict Returns: **Response Syntax** { 'AppsLists': [ { 'ListArn': 'string', 'ListId': 'string', 'ListName': 'string', 'AppsList': [ { 'AppName': 'string', 'Protocol': 'string', 'Port': 123 }, ] }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **AppsLists** *(list) --* An array of "AppsListDataSummary" objects. * *(dict) --* Details of the Firewall Manager applications list. * **ListArn** *(string) --* The Amazon Resource Name (ARN) of the applications list. * **ListId** *(string) --* The ID of the applications list. * **ListName** *(string) --* The name of the applications list. * **AppsList** *(list) --* An array of "App" objects in the Firewall Manager applications list. * *(dict) --* An individual Firewall Manager application. * **AppName** *(string) --* The application's name. * **Protocol** *(string) --* The IP protocol name or number. The name can be one of "tcp", "udp", or "icmp". For information on possible numbers, see Protocol Numbers. * **Port** *(integer) --* The application's port number, for example "80". * **NextToken** *(string) --* If you specify a value for "MaxResults" in your list request, and you have more objects than the maximum, Firewall Manager returns this token in the response. You can use this token in subsequent requests to retrieve the next batch of objects. **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.LimitExceededException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / get_protocols_list get_protocols_list ****************** FMS.Client.get_protocols_list(**kwargs) Returns information about the specified Firewall Manager protocols list. See also: AWS API Documentation **Request Syntax** response = client.get_protocols_list( ListId='string', DefaultList=True|False ) Parameters: * **ListId** (*string*) -- **[REQUIRED]** The ID of the Firewall Manager protocols list that you want the details for. * **DefaultList** (*boolean*) -- Specifies whether the list to retrieve is a default list owned by Firewall Manager. Return type: dict Returns: **Response Syntax** { 'ProtocolsList': { 'ListId': 'string', 'ListName': 'string', 'ListUpdateToken': 'string', 'CreateTime': datetime(2015, 1, 1), 'LastUpdateTime': datetime(2015, 1, 1), 'ProtocolsList': [ 'string', ], 'PreviousProtocolsList': { 'string': [ 'string', ] } }, 'ProtocolsListArn': 'string' } **Response Structure** * *(dict) --* * **ProtocolsList** *(dict) --* Information about the specified Firewall Manager protocols list. * **ListId** *(string) --* The ID of the Firewall Manager protocols list. * **ListName** *(string) --* The name of the Firewall Manager protocols list. * **ListUpdateToken** *(string) --* A unique identifier for each update to the list. When you update the list, the update token must match the token of the current version of the application list. You can retrieve the update token by getting the list. * **CreateTime** *(datetime) --* The time that the Firewall Manager protocols list was created. * **LastUpdateTime** *(datetime) --* The time that the Firewall Manager protocols list was last updated. * **ProtocolsList** *(list) --* An array of protocols in the Firewall Manager protocols list. * *(string) --* * **PreviousProtocolsList** *(dict) --* A map of previous version numbers to their corresponding protocol arrays. * *(string) --* * *(list) --* * *(string) --* * **ProtocolsListArn** *(string) --* The Amazon Resource Name (ARN) of the specified protocols list. **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / list_discovered_resources list_discovered_resources ************************* FMS.Client.list_discovered_resources(**kwargs) Returns an array of resources in the organization's accounts that are available to be associated with a resource set. See also: AWS API Documentation **Request Syntax** response = client.list_discovered_resources( MemberAccountIds=[ 'string', ], ResourceType='string', MaxResults=123, NextToken='string' ) Parameters: * **MemberAccountIds** (*list*) -- **[REQUIRED]** The Amazon Web Services account IDs to discover resources in. Only one account is supported per request. The account must be a member of your organization. * *(string) --* * **ResourceType** (*string*) -- **[REQUIRED]** The type of resources to discover. * **MaxResults** (*integer*) -- The maximum number of objects that you want Firewall Manager to return for this request. If more objects are available, in the response, Firewall Manager provides a "NextToken" value that you can use in a subsequent call to get the next batch of objects. * **NextToken** (*string*) -- When you request a list of objects with a "MaxResults" setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a "NextToken" value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. Return type: dict Returns: **Response Syntax** { 'Items': [ { 'URI': 'string', 'AccountId': 'string', 'Type': 'string', 'Name': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Items** *(list) --* Details of the resources that were discovered. * *(dict) --* A resource in the organization that's available to be associated with a Firewall Manager resource set. * **URI** *(string) --* The universal resource identifier (URI) of the discovered resource. * **AccountId** *(string) --* The Amazon Web Services account ID associated with the discovered resource. * **Type** *(string) --* The type of the discovered resource. * **Name** *(string) --* The name of the discovered resource. * **NextToken** *(string) --* When you request a list of objects with a "MaxResults" setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a "NextToken" value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / delete_notification_channel delete_notification_channel *************************** FMS.Client.delete_notification_channel() 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. See also: AWS API Documentation **Request Syntax** response = client.delete_notification_channel() Returns: None **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / list_policies list_policies ************* FMS.Client.list_policies(**kwargs) Returns an array of "PolicySummary" objects. See also: AWS API Documentation **Request Syntax** response = client.list_policies( NextToken='string', MaxResults=123 ) Parameters: * **NextToken** (*string*) -- If you specify a value for "MaxResults" and you have more "PolicySummary" objects than the number that you specify for "MaxResults", Firewall Manager returns a "NextToken" value in the response that allows you to list another group of "PolicySummary" objects. For the second and subsequent "ListPolicies" requests, specify the value of "NextToken" from the previous response to get information about another batch of "PolicySummary" objects. * **MaxResults** (*integer*) -- Specifies the number of "PolicySummary" objects that you want Firewall Manager to return for this request. If you have more "PolicySummary" objects than the number that you specify for "MaxResults", the response includes a "NextToken" value that you can use to get another batch of "PolicySummary" objects. Return type: dict Returns: **Response Syntax** { 'PolicyList': [ { 'PolicyArn': 'string', 'PolicyId': 'string', 'PolicyName': 'string', 'ResourceType': 'string', 'SecurityServiceType': 'WAF'|'WAFV2'|'SHIELD_ADVANCED'|'SECURITY_GROUPS_COMMON'|'SECURITY_GROUPS_CONTENT_AUDIT'|'SECURITY_GROUPS_USAGE_AUDIT'|'NETWORK_FIREWALL'|'DNS_FIREWALL'|'THIRD_PARTY_FIREWALL'|'IMPORT_NETWORK_FIREWALL'|'NETWORK_ACL_COMMON', 'RemediationEnabled': True|False, 'DeleteUnusedFMManagedResources': True|False, 'PolicyStatus': 'ACTIVE'|'OUT_OF_ADMIN_SCOPE' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **PolicyList** *(list) --* An array of "PolicySummary" objects. * *(dict) --* Details of the Firewall Manager policy. * **PolicyArn** *(string) --* The Amazon Resource Name (ARN) of the specified policy. * **PolicyId** *(string) --* The ID of the specified policy. * **PolicyName** *(string) --* The name of the specified policy. * **ResourceType** *(string) --* The type of resource protected by or in scope of the policy. This is in the format shown in the Amazon Web Services Resource Types Reference. * **SecurityServiceType** *(string) --* The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an WAF policy, a Shield Advanced policy, or a security group policy. * **RemediationEnabled** *(boolean) --* Indicates if the policy should be automatically applied to new resources. * **DeleteUnusedFMManagedResources** *(boolean) --* Indicates whether Firewall Manager should automatically remove protections from resources that leave the policy scope and clean up resources that Firewall Manager is managing for accounts when those accounts leave policy scope. For example, Firewall Manager will disassociate a Firewall Manager managed web ACL from a protected customer resource when the customer resource leaves policy scope. By default, Firewall Manager doesn't remove protections or delete Firewall Manager managed resources. This option is not available for Shield Advanced or WAF Classic policies. * **PolicyStatus** *(string) --* Indicates whether the policy is in or out of an admin's policy or Region scope. * "ACTIVE" - The administrator can manage and delete the policy. * "OUT_OF_ADMIN_SCOPE" - The administrator can view the policy, but they can't edit or delete the policy. Existing policy protections stay in place. Any new resources that come into scope of the policy won't be protected. * **NextToken** *(string) --* If you have more "PolicySummary" objects than the number that you specified for "MaxResults" in the request, the response includes a "NextToken" value. To list more "PolicySummary" objects, submit another "ListPolicies" request, and specify the "NextToken" value from the response in the "NextToken" value in the next request. **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.LimitExceededException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / put_notification_channel put_notification_channel ************************ FMS.Client.put_notification_channel(**kwargs) 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*. See also: AWS API Documentation **Request Syntax** response = client.put_notification_channel( SnsTopicArn='string', SnsRoleName='string' ) Parameters: * **SnsTopicArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the SNS topic that collects notifications from Firewall Manager. * **SnsRoleName** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to record Firewall Manager activity. Returns: None **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / list_tags_for_resource list_tags_for_resource ********************** FMS.Client.list_tags_for_resource(**kwargs) Retrieves the list of tags for the specified Amazon Web Services resource. See also: AWS API Documentation **Request Syntax** response = client.list_tags_for_resource( ResourceArn='string' ) Parameters: **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource to return tags for. The Firewall Manager resources that support tagging are policies, applications lists, and protocols lists. Return type: dict Returns: **Response Syntax** { 'TagList': [ { 'Key': 'string', 'Value': 'string' }, ] } **Response Structure** * *(dict) --* * **TagList** *(list) --* The tags associated with the resource. * *(dict) --* A collection of key:value pairs associated with an Amazon Web Services resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each Amazon Web Services resource. * **Key** *(string) --* Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive. * **Value** *(string) --* Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive. **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" * "FMS.Client.exceptions.InvalidInputException" FMS / Client / untag_resource untag_resource ************** FMS.Client.untag_resource(**kwargs) Removes one or more tags from an Amazon Web Services resource. See also: AWS API Documentation **Request Syntax** response = client.untag_resource( ResourceArn='string', TagKeys=[ 'string', ] ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource to return tags for. The Firewall Manager resources that support tagging are policies, applications lists, and protocols lists. * **TagKeys** (*list*) -- **[REQUIRED]** The keys of the tags to remove from the resource. * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" * "FMS.Client.exceptions.InvalidInputException" FMS / Client / get_admin_scope get_admin_scope *************** FMS.Client.get_admin_scope(**kwargs) Returns information about the specified account's administrative scope. The administrative scope defines the resources that an Firewall Manager administrator can manage. See also: AWS API Documentation **Request Syntax** response = client.get_admin_scope( AdminAccount='string' ) Parameters: **AdminAccount** (*string*) -- **[REQUIRED]** The administrator account that you want to get the details for. Return type: dict Returns: **Response Syntax** { 'AdminScope': { 'AccountScope': { 'Accounts': [ 'string', ], 'AllAccountsEnabled': True|False, 'ExcludeSpecifiedAccounts': True|False }, 'OrganizationalUnitScope': { 'OrganizationalUnits': [ 'string', ], 'AllOrganizationalUnitsEnabled': True|False, 'ExcludeSpecifiedOrganizationalUnits': True|False }, 'RegionScope': { 'Regions': [ 'string', ], 'AllRegionsEnabled': True|False }, 'PolicyTypeScope': { 'PolicyTypes': [ 'WAF'|'WAFV2'|'SHIELD_ADVANCED'|'SECURITY_GROUPS_COMMON'|'SECURITY_GROUPS_CONTENT_AUDIT'|'SECURITY_GROUPS_USAGE_AUDIT'|'NETWORK_FIREWALL'|'DNS_FIREWALL'|'THIRD_PARTY_FIREWALL'|'IMPORT_NETWORK_FIREWALL'|'NETWORK_ACL_COMMON', ], 'AllPolicyTypesEnabled': True|False } }, 'Status': 'ONBOARDING'|'ONBOARDING_COMPLETE'|'OFFBOARDING'|'OFFBOARDING_COMPLETE' } **Response Structure** * *(dict) --* * **AdminScope** *(dict) --* Contains details about the administrative scope of the requested account. * **AccountScope** *(dict) --* Defines the accounts that the specified Firewall Manager administrator can apply policies to. * **Accounts** *(list) --* The list of accounts within the organization that the specified Firewall Manager administrator either can or cannot apply policies to, based on the value of "ExcludeSpecifiedAccounts". If "ExcludeSpecifiedAccounts" is set to "true", then the Firewall Manager administrator can apply policies to all members of the organization except for the accounts in this list. If "ExcludeSpecifiedAccounts" is set to "false", then the Firewall Manager administrator can only apply policies to the accounts in this list. * *(string) --* * **AllAccountsEnabled** *(boolean) --* A boolean value that indicates if the administrator can apply policies to all accounts within an organization. If true, the administrator can apply policies to all accounts within the organization. You can either enable management of all accounts through this operation, or you can specify a list of accounts to manage in "AccountScope$Accounts". You cannot specify both. * **ExcludeSpecifiedAccounts** *(boolean) --* A boolean value that excludes the accounts in "AccountScope$Accounts" from the administrator's scope. If true, the Firewall Manager administrator can apply policies to all members of the organization except for the accounts listed in "AccountScope$Accounts". You can either specify a list of accounts to exclude by "AccountScope$Accounts", or you can enable management of all accounts by "AccountScope$AllAccountsEnabled". You cannot specify both. * **OrganizationalUnitScope** *(dict) --* Defines the Organizations organizational units that the specified Firewall Manager administrator can apply policies to. For more information about OUs in Organizations, see Managing organizational units (OUs) in the *Organizations User Guide*. * **OrganizationalUnits** *(list) --* The list of OUs within the organization that the specified Firewall Manager administrator either can or cannot apply policies to, based on the value of "Organi zationalUnitScope$ExcludeSpecifiedOrganizationalUnits". If "OrganizationalUnitScope$ExcludeSpecifiedOrganizatio nalUnits" is set to "true", then the Firewall Manager administrator can apply policies to all OUs in the organization except for the OUs in this list. If "Organ izationalUnitScope$ExcludeSpecifiedOrganizationalUnits" is set to "false", then the Firewall Manager administrator can only apply policies to the OUs in this list. * *(string) --* * **AllOrganizationalUnitsEnabled** *(boolean) --* A boolean value that indicates if the administrator can apply policies to all OUs within an organization. If true, the administrator can manage all OUs within the organization. You can either enable management of all OUs through this operation, or you can specify OUs to manage in "OrganizationalUnitScope$OrganizationalUnits". You cannot specify both. * **ExcludeSpecifiedOrganizationalUnits** *(boolean) --* A boolean value that excludes the OUs in "OrganizationalUnitScope$OrganizationalUnits" from the administrator's scope. If true, the Firewall Manager administrator can apply policies to all OUs in the organization except for the OUs listed in "OrganizationalUnitScope$OrganizationalUnits". You can either specify a list of OUs to exclude by "OrganizationalUnitScope$OrganizationalUnits", or you can enable management of all OUs by "OrganizationalUnitScope$AllOrganizationalUnitsEnabled". You cannot specify both. * **RegionScope** *(dict) --* Defines the Amazon Web Services Regions that the specified Firewall Manager administrator can perform actions in. * **Regions** *(list) --* The Amazon Web Services Regions that the specified Firewall Manager administrator can perform actions in. * *(string) --* * **AllRegionsEnabled** *(boolean) --* Allows the specified Firewall Manager administrator to manage all Amazon Web Services Regions. * **PolicyTypeScope** *(dict) --* Defines the Firewall Manager policy types that the specified Firewall Manager administrator can create and manage. * **PolicyTypes** *(list) --* The list of policy types that the specified Firewall Manager administrator can manage. * *(string) --* * **AllPolicyTypesEnabled** *(boolean) --* Allows the specified Firewall Manager administrator to manage all Firewall Manager policy types, except for third-party policy types. Third-party policy types can only be managed by the Firewall Manager default administrator. * **Status** *(string) --* The current status of the request to onboard a member account as an Firewall Manager administrator. * "ONBOARDING" - The account is onboarding to Firewall Manager as an administrator. * "ONBOARDING_COMPLETE" - Firewall Manager The account is onboarded to Firewall Manager as an administrator, and can perform actions on the resources defined in their AdminScope. * "OFFBOARDING" - The account is being removed as an Firewall Manager administrator. * "OFFBOARDING_COMPLETE" - The account has been removed as an Firewall Manager administrator. **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InternalErrorException" * "FMS.Client.exceptions.LimitExceededException" FMS / Client / get_protection_status get_protection_status ********************* FMS.Client.get_protection_status(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.get_protection_status( PolicyId='string', MemberAccountId='string', StartTime=datetime(2015, 1, 1), EndTime=datetime(2015, 1, 1), NextToken='string', MaxResults=123 ) Parameters: * **PolicyId** (*string*) -- **[REQUIRED]** The ID of the policy for which you want to get the attack information. * **MemberAccountId** (*string*) -- The Amazon Web Services account that is in scope of the policy that you want to get the details for. * **StartTime** (*datetime*) -- The start of the time period to query for the attacks. This is a "timestamp" type. The request syntax listing indicates a "number" type because the default used by Firewall Manager is Unix time in seconds. However, any valid "timestamp" format is allowed. * **EndTime** (*datetime*) -- The end of the time period to query for the attacks. This is a "timestamp" type. The request syntax listing indicates a "number" type because the default used by Firewall Manager is Unix time in seconds. However, any valid "timestamp" format is allowed. * **NextToken** (*string*) -- If you specify a value for "MaxResults" and you have more objects than the number that you specify for "MaxResults", Firewall Manager returns a "NextToken" value in the response, which you can use to retrieve another group of objects. For the second and subsequent "GetProtectionStatus" requests, specify the value of "NextToken" from the previous response to get information about another batch of objects. * **MaxResults** (*integer*) -- Specifies the number of objects that you want Firewall Manager to return for this request. If you have more objects than the number that you specify for "MaxResults", the response includes a "NextToken" value that you can use to get another batch of objects. Return type: dict Returns: **Response Syntax** { 'AdminAccountId': 'string', 'ServiceType': 'WAF'|'WAFV2'|'SHIELD_ADVANCED'|'SECURITY_GROUPS_COMMON'|'SECURITY_GROUPS_CONTENT_AUDIT'|'SECURITY_GROUPS_USAGE_AUDIT'|'NETWORK_FIREWALL'|'DNS_FIREWALL'|'THIRD_PARTY_FIREWALL'|'IMPORT_NETWORK_FIREWALL'|'NETWORK_ACL_COMMON', 'Data': 'string', 'NextToken': 'string' } **Response Structure** * *(dict) --* * **AdminAccountId** *(string) --* The ID of the Firewall Manager administrator account for this policy. * **ServiceType** *(string) --* The service type that is protected by the policy. Currently, this is always "SHIELD_ADVANCED". * **Data** *(string) --* Details about the attack, including the following: * Attack type * Account ID * ARN of the resource attacked * Start time of the attack * End time of the attack (ongoing attacks will not have an end time) The details are in JSON format. * **NextToken** *(string) --* If you have more objects than the number that you specified for "MaxResults" in the request, the response includes a "NextToken" value. To list more objects, submit another "GetProtectionStatus" request, and specify the "NextToken" value from the response in the "NextToken" value in the next request. Amazon Web Services SDKs provide auto-pagination that identify "NextToken" in a response and make subsequent request calls automatically on your behalf. However, this feature is not supported by "GetProtectionStatus". You must submit subsequent requests with "NextToken" using your own processes. **Exceptions** * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / delete_apps_list delete_apps_list **************** FMS.Client.delete_apps_list(**kwargs) Permanently deletes an Firewall Manager applications list. See also: AWS API Documentation **Request Syntax** response = client.delete_apps_list( ListId='string' ) Parameters: **ListId** (*string*) -- **[REQUIRED]** The ID of the applications list that you want to delete. You can retrieve this ID from "PutAppsList", "ListAppsLists", and "GetAppsList". Returns: None **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / get_waiter get_waiter ********** FMS.Client.get_waiter(waiter_name) Returns an object that can wait for some condition. Parameters: **waiter_name** (*str*) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters. Returns: The specified waiter object. Return type: "botocore.waiter.Waiter" FMS / Client / delete_policy delete_policy ************* FMS.Client.delete_policy(**kwargs) Permanently deletes an Firewall Manager policy. See also: AWS API Documentation **Request Syntax** response = client.delete_policy( PolicyId='string', DeleteAllPolicyResources=True|False ) Parameters: * **PolicyId** (*string*) -- **[REQUIRED]** The ID of the policy that you want to delete. You can retrieve this ID from "PutPolicy" and "ListPolicies". * **DeleteAllPolicyResources** (*boolean*) -- If "True", the request performs cleanup according to the policy type. For WAF and Shield Advanced policies, the cleanup does the following: * Deletes rule groups created by Firewall Manager * Removes web ACLs from in-scope resources * Deletes web ACLs that contain no rules or rule groups For security group policies, the cleanup does the following for each security group in the policy: * Disassociates the security group from in-scope resources * Deletes the security group if it was created through Firewall Manager and if it's no longer associated with any resources through another policy Note: For security group common policies, even if set to "False", Firewall Manager deletes all security groups created by Firewall Manager that aren't associated with any other resources through another policy. After the cleanup, in-scope resources are no longer protected by web ACLs in this policy. Protection of out-of-scope resources remains unchanged. Scope is determined by tags that you create and accounts that you associate with the policy. When creating the policy, if you specify that only resources in specific accounts or with specific tags are in scope of the policy, those accounts and resources are handled by the policy. All others are out of scope. If you don't specify tags or accounts, all resources are in scope. Returns: None **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.LimitExceededException" FMS / Client / disassociate_third_party_firewall disassociate_third_party_firewall ********************************* FMS.Client.disassociate_third_party_firewall(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.disassociate_third_party_firewall( ThirdPartyFirewall='PALO_ALTO_NETWORKS_CLOUD_NGFW'|'FORTIGATE_CLOUD_NATIVE_FIREWALL' ) Parameters: **ThirdPartyFirewall** (*string*) -- **[REQUIRED]** The name of the third-party firewall vendor. Return type: dict Returns: **Response Syntax** { 'ThirdPartyFirewallStatus': 'ONBOARDING'|'ONBOARD_COMPLETE'|'OFFBOARDING'|'OFFBOARD_COMPLETE'|'NOT_EXIST' } **Response Structure** * *(dict) --* * **ThirdPartyFirewallStatus** *(string) --* The current status for the disassociation of a Firewall Manager administrators account with a third-party firewall. **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / put_admin_account put_admin_account ***************** FMS.Client.put_admin_account(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.put_admin_account( AdminAccount='string', AdminScope={ 'AccountScope': { 'Accounts': [ 'string', ], 'AllAccountsEnabled': True|False, 'ExcludeSpecifiedAccounts': True|False }, 'OrganizationalUnitScope': { 'OrganizationalUnits': [ 'string', ], 'AllOrganizationalUnitsEnabled': True|False, 'ExcludeSpecifiedOrganizationalUnits': True|False }, 'RegionScope': { 'Regions': [ 'string', ], 'AllRegionsEnabled': True|False }, 'PolicyTypeScope': { 'PolicyTypes': [ 'WAF'|'WAFV2'|'SHIELD_ADVANCED'|'SECURITY_GROUPS_COMMON'|'SECURITY_GROUPS_CONTENT_AUDIT'|'SECURITY_GROUPS_USAGE_AUDIT'|'NETWORK_FIREWALL'|'DNS_FIREWALL'|'THIRD_PARTY_FIREWALL'|'IMPORT_NETWORK_FIREWALL'|'NETWORK_ACL_COMMON', ], 'AllPolicyTypesEnabled': True|False } } ) Parameters: * **AdminAccount** (*string*) -- **[REQUIRED]** The Amazon Web Services account ID to add as an Firewall Manager administrator account. The account must be a member of the organization that was onboarded to Firewall Manager by AssociateAdminAccount. For more information about Organizations, see Managing the Amazon Web Services Accounts in Your Organization. * **AdminScope** (*dict*) -- Configures the resources that the specified Firewall Manager administrator can manage. As a best practice, set the administrative scope according to the principles of least privilege. Only grant the administrator the specific resources or permissions that they need to perform the duties of their role. * **AccountScope** *(dict) --* Defines the accounts that the specified Firewall Manager administrator can apply policies to. * **Accounts** *(list) --* The list of accounts within the organization that the specified Firewall Manager administrator either can or cannot apply policies to, based on the value of "ExcludeSpecifiedAccounts". If "ExcludeSpecifiedAccounts" is set to "true", then the Firewall Manager administrator can apply policies to all members of the organization except for the accounts in this list. If "ExcludeSpecifiedAccounts" is set to "false", then the Firewall Manager administrator can only apply policies to the accounts in this list. * *(string) --* * **AllAccountsEnabled** *(boolean) --* A boolean value that indicates if the administrator can apply policies to all accounts within an organization. If true, the administrator can apply policies to all accounts within the organization. You can either enable management of all accounts through this operation, or you can specify a list of accounts to manage in "AccountScope$Accounts". You cannot specify both. * **ExcludeSpecifiedAccounts** *(boolean) --* A boolean value that excludes the accounts in "AccountScope$Accounts" from the administrator's scope. If true, the Firewall Manager administrator can apply policies to all members of the organization except for the accounts listed in "AccountScope$Accounts". You can either specify a list of accounts to exclude by "AccountScope$Accounts", or you can enable management of all accounts by "AccountScope$AllAccountsEnabled". You cannot specify both. * **OrganizationalUnitScope** *(dict) --* Defines the Organizations organizational units that the specified Firewall Manager administrator can apply policies to. For more information about OUs in Organizations, see Managing organizational units (OUs) in the *Organizations User Guide*. * **OrganizationalUnits** *(list) --* The list of OUs within the organization that the specified Firewall Manager administrator either can or cannot apply policies to, based on the value of "OrganizationalUnitSco pe$ExcludeSpecifiedOrganizationalUnits". If "Organization alUnitScope$ExcludeSpecifiedOrganizationalUnits" is set to "true", then the Firewall Manager administrator can apply policies to all OUs in the organization except for the OUs in this list. If "OrganizationalUnitScope$ExcludeSpecifie dOrganizationalUnits" is set to "false", then the Firewall Manager administrator can only apply policies to the OUs in this list. * *(string) --* * **AllOrganizationalUnitsEnabled** *(boolean) --* A boolean value that indicates if the administrator can apply policies to all OUs within an organization. If true, the administrator can manage all OUs within the organization. You can either enable management of all OUs through this operation, or you can specify OUs to manage in "OrganizationalUnitScope$OrganizationalUnits". You cannot specify both. * **ExcludeSpecifiedOrganizationalUnits** *(boolean) --* A boolean value that excludes the OUs in "OrganizationalUnitScope$OrganizationalUnits" from the administrator's scope. If true, the Firewall Manager administrator can apply policies to all OUs in the organization except for the OUs listed in "OrganizationalUnitScope$OrganizationalUnits". You can either specify a list of OUs to exclude by "OrganizationalUnitScope$OrganizationalUnits", or you can enable management of all OUs by "OrganizationalUnitScope$AllOrganizationalUnitsEnabled". You cannot specify both. * **RegionScope** *(dict) --* Defines the Amazon Web Services Regions that the specified Firewall Manager administrator can perform actions in. * **Regions** *(list) --* The Amazon Web Services Regions that the specified Firewall Manager administrator can perform actions in. * *(string) --* * **AllRegionsEnabled** *(boolean) --* Allows the specified Firewall Manager administrator to manage all Amazon Web Services Regions. * **PolicyTypeScope** *(dict) --* Defines the Firewall Manager policy types that the specified Firewall Manager administrator can create and manage. * **PolicyTypes** *(list) --* The list of policy types that the specified Firewall Manager administrator can manage. * *(string) --* * **AllPolicyTypesEnabled** *(boolean) --* Allows the specified Firewall Manager administrator to manage all Firewall Manager policy types, except for third-party policy types. Third-party policy types can only be managed by the Firewall Manager default administrator. Returns: None **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.InternalErrorException" * "FMS.Client.exceptions.LimitExceededException" FMS / Client / put_resource_set put_resource_set **************** FMS.Client.put_resource_set(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.put_resource_set( ResourceSet={ 'Id': 'string', 'Name': 'string', 'Description': 'string', 'UpdateToken': 'string', 'ResourceTypeList': [ 'string', ], 'LastUpdateTime': datetime(2015, 1, 1), 'ResourceSetStatus': 'ACTIVE'|'OUT_OF_ADMIN_SCOPE' }, TagList=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **ResourceSet** (*dict*) -- **[REQUIRED]** Details about the resource set to be created or updated.> * **Id** *(string) --* A unique identifier for the resource set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete. * **Name** *(string) --* **[REQUIRED]** The descriptive name of the resource set. You can't change the name of a resource set after you create it. * **Description** *(string) --* A description of the resource set. * **UpdateToken** *(string) --* An optional token that you can use for optimistic locking. Firewall Manager returns a token to your requests that access the resource set. The token marks the state of the resource set resource at the time of the request. Update tokens are not allowed when creating a resource set. After creation, each subsequent update call to the resource set requires the update token. To make an unconditional change to the resource set, omit the token in your update request. Without the token, Firewall Manager performs your updates regardless of whether the resource set has changed since you last retrieved it. To make a conditional change to the resource set, provide the token in your update request. Firewall Manager uses the token to ensure that the resource set hasn't changed since you last retrieved it. If it has changed, the operation fails with an "InvalidTokenException". If this happens, retrieve the resource set again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token. * **ResourceTypeList** *(list) --* **[REQUIRED]** Determines the resources that can be associated to the resource set. Depending on your setting for max results and the number of resource sets, a single call might not return the full list. * *(string) --* * **LastUpdateTime** *(datetime) --* The last time that the resource set was changed. * **ResourceSetStatus** *(string) --* Indicates whether the resource set is in or out of an admin's Region scope. * "ACTIVE" - The administrator can manage and delete the resource set. * "OUT_OF_ADMIN_SCOPE" - The administrator can view the resource set, but they can't edit or delete the resource set. Existing protections stay in place. Any new resource that come into scope of the resource set won't be protected. * **TagList** (*list*) -- Retrieves the tags associated with the specified resource set. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing. For example, you might set the tag key to "customer" and the value to the customer name or ID. You can specify one or more tags to add to each Amazon Web Services resource, up to 50 tags for a resource. * *(dict) --* A collection of key:value pairs associated with an Amazon Web Services resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each Amazon Web Services resource. * **Key** *(string) --* **[REQUIRED]** Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive. * **Value** *(string) --* **[REQUIRED]** Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive. Return type: dict Returns: **Response Syntax** { 'ResourceSet': { 'Id': 'string', 'Name': 'string', 'Description': 'string', 'UpdateToken': 'string', 'ResourceTypeList': [ 'string', ], 'LastUpdateTime': datetime(2015, 1, 1), 'ResourceSetStatus': 'ACTIVE'|'OUT_OF_ADMIN_SCOPE' }, 'ResourceSetArn': 'string' } **Response Structure** * *(dict) --* * **ResourceSet** *(dict) --* Details about the resource set. * **Id** *(string) --* A unique identifier for the resource set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete. * **Name** *(string) --* The descriptive name of the resource set. You can't change the name of a resource set after you create it. * **Description** *(string) --* A description of the resource set. * **UpdateToken** *(string) --* An optional token that you can use for optimistic locking. Firewall Manager returns a token to your requests that access the resource set. The token marks the state of the resource set resource at the time of the request. Update tokens are not allowed when creating a resource set. After creation, each subsequent update call to the resource set requires the update token. To make an unconditional change to the resource set, omit the token in your update request. Without the token, Firewall Manager performs your updates regardless of whether the resource set has changed since you last retrieved it. To make a conditional change to the resource set, provide the token in your update request. Firewall Manager uses the token to ensure that the resource set hasn't changed since you last retrieved it. If it has changed, the operation fails with an "InvalidTokenException". If this happens, retrieve the resource set again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token. * **ResourceTypeList** *(list) --* Determines the resources that can be associated to the resource set. Depending on your setting for max results and the number of resource sets, a single call might not return the full list. * *(string) --* * **LastUpdateTime** *(datetime) --* The last time that the resource set was changed. * **ResourceSetStatus** *(string) --* Indicates whether the resource set is in or out of an admin's Region scope. * "ACTIVE" - The administrator can manage and delete the resource set. * "OUT_OF_ADMIN_SCOPE" - The administrator can view the resource set, but they can't edit or delete the resource set. Existing protections stay in place. Any new resource that come into scope of the resource set won't be protected. * **ResourceSetArn** *(string) --* The Amazon Resource Name (ARN) of the resource set. **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.LimitExceededException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / batch_disassociate_resource batch_disassociate_resource *************************** FMS.Client.batch_disassociate_resource(**kwargs) Disassociates resources from a Firewall Manager resource set. See also: AWS API Documentation **Request Syntax** response = client.batch_disassociate_resource( ResourceSetIdentifier='string', Items=[ 'string', ] ) Parameters: * **ResourceSetIdentifier** (*string*) -- **[REQUIRED]** A unique identifier for the resource set, used in a request to refer to the resource set. * **Items** (*list*) -- **[REQUIRED]** The uniform resource identifiers (URI) of resources that should be disassociated from the resource set. The URIs must be Amazon Resource Names (ARNs). * *(string) --* Return type: dict Returns: **Response Syntax** { 'ResourceSetIdentifier': 'string', 'FailedItems': [ { 'URI': 'string', 'Reason': 'NOT_VALID_ARN'|'NOT_VALID_PARTITION'|'NOT_VALID_REGION'|'NOT_VALID_SERVICE'|'NOT_VALID_RESOURCE_TYPE'|'NOT_VALID_ACCOUNT_ID' }, ] } **Response Structure** * *(dict) --* * **ResourceSetIdentifier** *(string) --* A unique identifier for the resource set, used in a request to refer to the resource set. * **FailedItems** *(list) --* The resources that failed to disassociate from the resource set. * *(dict) --* Details of a resource that failed when trying to update it's association to a resource set. * **URI** *(string) --* The univeral resource indicator (URI) of the resource that failed. * **Reason** *(string) --* The reason the resource's association could not be updated. **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.ResourceNotFoundException" FMS / Client / disassociate_admin_account disassociate_admin_account ************************** FMS.Client.disassociate_admin_account() 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. See also: AWS API Documentation **Request Syntax** response = client.disassociate_admin_account() Returns: None **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / list_third_party_firewall_firewall_policies list_third_party_firewall_firewall_policies ******************************************* FMS.Client.list_third_party_firewall_firewall_policies(**kwargs) Retrieves a list of all of the third-party firewall policies that are associated with the third-party firewall administrator's account. See also: AWS API Documentation **Request Syntax** response = client.list_third_party_firewall_firewall_policies( ThirdPartyFirewall='PALO_ALTO_NETWORKS_CLOUD_NGFW'|'FORTIGATE_CLOUD_NATIVE_FIREWALL', NextToken='string', MaxResults=123 ) Parameters: * **ThirdPartyFirewall** (*string*) -- **[REQUIRED]** The name of the third-party firewall vendor. * **NextToken** (*string*) -- If the previous response included a "NextToken" element, the specified third-party firewall vendor is associated with more third-party firewall policies. To get more third-party firewall policies, submit another "ListThirdPartyFirewallFirewallPoliciesRequest" request. For the value of "NextToken", specify the value of "NextToken" from the previous response. If the previous response didn't include a "NextToken" element, there are no more third-party firewall policies to get. * **MaxResults** (*integer*) -- **[REQUIRED]** The maximum number of third-party firewall policies that you want Firewall Manager to return. If the specified third-party firewall vendor is associated with more than "MaxResults" firewall policies, the response includes a "NextToken" element. "NextToken" contains an encrypted token that identifies the first third-party firewall policies that Firewall Manager will return if you submit another request. Return type: dict Returns: **Response Syntax** { 'ThirdPartyFirewallFirewallPolicies': [ { 'FirewallPolicyId': 'string', 'FirewallPolicyName': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **ThirdPartyFirewallFirewallPolicies** *(list) --* A list that contains one "ThirdPartyFirewallFirewallPolicies" element for each third- party firewall policies that the specified third-party firewall vendor is associated with. Each "ThirdPartyFirewallFirewallPolicies" element contains the firewall policy name and ID. * *(dict) --* Configures the third-party firewall's firewall policy. * **FirewallPolicyId** *(string) --* The ID of the specified firewall policy. * **FirewallPolicyName** *(string) --* The name of the specified firewall policy. * **NextToken** *(string) --* The value that you will use for "NextToken" in the next "ListThirdPartyFirewallFirewallPolicies" request. **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / put_apps_list put_apps_list ************* FMS.Client.put_apps_list(**kwargs) Creates an Firewall Manager applications list. See also: AWS API Documentation **Request Syntax** response = client.put_apps_list( AppsList={ 'ListId': 'string', 'ListName': 'string', 'ListUpdateToken': 'string', 'CreateTime': datetime(2015, 1, 1), 'LastUpdateTime': datetime(2015, 1, 1), 'AppsList': [ { 'AppName': 'string', 'Protocol': 'string', 'Port': 123 }, ], 'PreviousAppsList': { 'string': [ { 'AppName': 'string', 'Protocol': 'string', 'Port': 123 }, ] } }, TagList=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **AppsList** (*dict*) -- **[REQUIRED]** The details of the Firewall Manager applications list to be created. * **ListId** *(string) --* The ID of the Firewall Manager applications list. * **ListName** *(string) --* **[REQUIRED]** The name of the Firewall Manager applications list. * **ListUpdateToken** *(string) --* A unique identifier for each update to the list. When you update the list, the update token must match the token of the current version of the application list. You can retrieve the update token by getting the list. * **CreateTime** *(datetime) --* The time that the Firewall Manager applications list was created. * **LastUpdateTime** *(datetime) --* The time that the Firewall Manager applications list was last updated. * **AppsList** *(list) --* **[REQUIRED]** An array of applications in the Firewall Manager applications list. * *(dict) --* An individual Firewall Manager application. * **AppName** *(string) --* **[REQUIRED]** The application's name. * **Protocol** *(string) --* **[REQUIRED]** The IP protocol name or number. The name can be one of "tcp", "udp", or "icmp". For information on possible numbers, see Protocol Numbers. * **Port** *(integer) --* **[REQUIRED]** The application's port number, for example "80". * **PreviousAppsList** *(dict) --* A map of previous version numbers to their corresponding "App" object arrays. * *(string) --* * *(list) --* * *(dict) --* An individual Firewall Manager application. * **AppName** *(string) --* **[REQUIRED]** The application's name. * **Protocol** *(string) --* **[REQUIRED]** The IP protocol name or number. The name can be one of "tcp", "udp", or "icmp". For information on possible numbers, see Protocol Numbers. * **Port** *(integer) --* **[REQUIRED]** The application's port number, for example "80". * **TagList** (*list*) -- The tags associated with the resource. * *(dict) --* A collection of key:value pairs associated with an Amazon Web Services resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each Amazon Web Services resource. * **Key** *(string) --* **[REQUIRED]** Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive. * **Value** *(string) --* **[REQUIRED]** Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive. Return type: dict Returns: **Response Syntax** { 'AppsList': { 'ListId': 'string', 'ListName': 'string', 'ListUpdateToken': 'string', 'CreateTime': datetime(2015, 1, 1), 'LastUpdateTime': datetime(2015, 1, 1), 'AppsList': [ { 'AppName': 'string', 'Protocol': 'string', 'Port': 123 }, ], 'PreviousAppsList': { 'string': [ { 'AppName': 'string', 'Protocol': 'string', 'Port': 123 }, ] } }, 'AppsListArn': 'string' } **Response Structure** * *(dict) --* * **AppsList** *(dict) --* The details of the Firewall Manager applications list. * **ListId** *(string) --* The ID of the Firewall Manager applications list. * **ListName** *(string) --* The name of the Firewall Manager applications list. * **ListUpdateToken** *(string) --* A unique identifier for each update to the list. When you update the list, the update token must match the token of the current version of the application list. You can retrieve the update token by getting the list. * **CreateTime** *(datetime) --* The time that the Firewall Manager applications list was created. * **LastUpdateTime** *(datetime) --* The time that the Firewall Manager applications list was last updated. * **AppsList** *(list) --* An array of applications in the Firewall Manager applications list. * *(dict) --* An individual Firewall Manager application. * **AppName** *(string) --* The application's name. * **Protocol** *(string) --* The IP protocol name or number. The name can be one of "tcp", "udp", or "icmp". For information on possible numbers, see Protocol Numbers. * **Port** *(integer) --* The application's port number, for example "80". * **PreviousAppsList** *(dict) --* A map of previous version numbers to their corresponding "App" object arrays. * *(string) --* * *(list) --* * *(dict) --* An individual Firewall Manager application. * **AppName** *(string) --* The application's name. * **Protocol** *(string) --* The IP protocol name or number. The name can be one of "tcp", "udp", or "icmp". For information on possible numbers, see Protocol Numbers. * **Port** *(integer) --* The application's port number, for example "80". * **AppsListArn** *(string) --* The Amazon Resource Name (ARN) of the applications list. **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.LimitExceededException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / associate_third_party_firewall associate_third_party_firewall ****************************** FMS.Client.associate_third_party_firewall(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.associate_third_party_firewall( ThirdPartyFirewall='PALO_ALTO_NETWORKS_CLOUD_NGFW'|'FORTIGATE_CLOUD_NATIVE_FIREWALL' ) Parameters: **ThirdPartyFirewall** (*string*) -- **[REQUIRED]** The name of the third-party firewall vendor. Return type: dict Returns: **Response Syntax** { 'ThirdPartyFirewallStatus': 'ONBOARDING'|'ONBOARD_COMPLETE'|'OFFBOARDING'|'OFFBOARD_COMPLETE'|'NOT_EXIST' } **Response Structure** * *(dict) --* * **ThirdPartyFirewallStatus** *(string) --* The current status for setting a Firewall Manager policy administrator's account as an administrator of the third- party firewall tenant. * "ONBOARDING" - The Firewall Manager policy administrator is being designated as a tenant administrator. * "ONBOARD_COMPLETE" - The Firewall Manager policy administrator is designated as a tenant administrator. * "OFFBOARDING" - The Firewall Manager policy administrator is being removed as a tenant administrator. * "OFFBOARD_COMPLETE" - The Firewall Manager policy administrator has been removed as a tenant administrator. * "NOT_EXIST" - The Firewall Manager policy administrator doesn't exist as a tenant administrator. **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / close close ***** FMS.Client.close() Closes underlying endpoint connections. FMS / Client / get_admin_account get_admin_account ***************** FMS.Client.get_admin_account() Returns the Organizations account that is associated with Firewall Manager as the Firewall Manager default administrator. See also: AWS API Documentation **Request Syntax** response = client.get_admin_account() Return type: dict Returns: **Response Syntax** { 'AdminAccount': 'string', 'RoleStatus': 'READY'|'CREATING'|'PENDING_DELETION'|'DELETING'|'DELETED' } **Response Structure** * *(dict) --* * **AdminAccount** *(string) --* The account that is set as the Firewall Manager default administrator. * **RoleStatus** *(string) --* The status of the account that you set as the Firewall Manager default administrator. **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / delete_protocols_list delete_protocols_list ********************* FMS.Client.delete_protocols_list(**kwargs) Permanently deletes an Firewall Manager protocols list. See also: AWS API Documentation **Request Syntax** response = client.delete_protocols_list( ListId='string' ) Parameters: **ListId** (*string*) -- **[REQUIRED]** The ID of the protocols list that you want to delete. You can retrieve this ID from "PutProtocolsList", "ListProtocolsLists", and "GetProtocolsLost". Returns: None **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / get_apps_list get_apps_list ************* FMS.Client.get_apps_list(**kwargs) Returns information about the specified Firewall Manager applications list. See also: AWS API Documentation **Request Syntax** response = client.get_apps_list( ListId='string', DefaultList=True|False ) Parameters: * **ListId** (*string*) -- **[REQUIRED]** The ID of the Firewall Manager applications list that you want the details for. * **DefaultList** (*boolean*) -- Specifies whether the list to retrieve is a default list owned by Firewall Manager. Return type: dict Returns: **Response Syntax** { 'AppsList': { 'ListId': 'string', 'ListName': 'string', 'ListUpdateToken': 'string', 'CreateTime': datetime(2015, 1, 1), 'LastUpdateTime': datetime(2015, 1, 1), 'AppsList': [ { 'AppName': 'string', 'Protocol': 'string', 'Port': 123 }, ], 'PreviousAppsList': { 'string': [ { 'AppName': 'string', 'Protocol': 'string', 'Port': 123 }, ] } }, 'AppsListArn': 'string' } **Response Structure** * *(dict) --* * **AppsList** *(dict) --* Information about the specified Firewall Manager applications list. * **ListId** *(string) --* The ID of the Firewall Manager applications list. * **ListName** *(string) --* The name of the Firewall Manager applications list. * **ListUpdateToken** *(string) --* A unique identifier for each update to the list. When you update the list, the update token must match the token of the current version of the application list. You can retrieve the update token by getting the list. * **CreateTime** *(datetime) --* The time that the Firewall Manager applications list was created. * **LastUpdateTime** *(datetime) --* The time that the Firewall Manager applications list was last updated. * **AppsList** *(list) --* An array of applications in the Firewall Manager applications list. * *(dict) --* An individual Firewall Manager application. * **AppName** *(string) --* The application's name. * **Protocol** *(string) --* The IP protocol name or number. The name can be one of "tcp", "udp", or "icmp". For information on possible numbers, see Protocol Numbers. * **Port** *(integer) --* The application's port number, for example "80". * **PreviousAppsList** *(dict) --* A map of previous version numbers to their corresponding "App" object arrays. * *(string) --* * *(list) --* * *(dict) --* An individual Firewall Manager application. * **AppName** *(string) --* The application's name. * **Protocol** *(string) --* The IP protocol name or number. The name can be one of "tcp", "udp", or "icmp". For information on possible numbers, see Protocol Numbers. * **Port** *(integer) --* The application's port number, for example "80". * **AppsListArn** *(string) --* The Amazon Resource Name (ARN) of the applications list. **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / list_resource_set_resources list_resource_set_resources *************************** FMS.Client.list_resource_set_resources(**kwargs) Returns an array of resources that are currently associated to a resource set. See also: AWS API Documentation **Request Syntax** response = client.list_resource_set_resources( Identifier='string', MaxResults=123, NextToken='string' ) Parameters: * **Identifier** (*string*) -- **[REQUIRED]** A unique identifier for the resource set, used in a request to refer to the resource set. * **MaxResults** (*integer*) -- The maximum number of objects that you want Firewall Manager to return for this request. If more objects are available, in the response, Firewall Manager provides a "NextToken" value that you can use in a subsequent call to get the next batch of objects. * **NextToken** (*string*) -- When you request a list of objects with a "MaxResults" setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a "NextToken" value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. Return type: dict Returns: **Response Syntax** { 'Items': [ { 'URI': 'string', 'AccountId': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Items** *(list) --* An array of the associated resources' uniform resource identifiers (URI). * *(dict) --* Details of a resource that is associated to an Firewall Manager resource set. * **URI** *(string) --* The resource's universal resource indicator (URI). * **AccountId** *(string) --* The Amazon Web Services account ID that the associated resource belongs to. * **NextToken** *(string) --* When you request a list of objects with a "MaxResults" setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a "NextToken" value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.ResourceNotFoundException" FMS / Client / get_policy get_policy ********** FMS.Client.get_policy(**kwargs) Returns information about the specified Firewall Manager policy. See also: AWS API Documentation **Request Syntax** response = client.get_policy( PolicyId='string' ) Parameters: **PolicyId** (*string*) -- **[REQUIRED]** The ID of the Firewall Manager policy that you want the details for. Return type: dict Returns: **Response Syntax** { 'Policy': { 'PolicyId': 'string', 'PolicyName': 'string', 'PolicyUpdateToken': 'string', 'SecurityServicePolicyData': { 'Type': 'WAF'|'WAFV2'|'SHIELD_ADVANCED'|'SECURITY_GROUPS_COMMON'|'SECURITY_GROUPS_CONTENT_AUDIT'|'SECURITY_GROUPS_USAGE_AUDIT'|'NETWORK_FIREWALL'|'DNS_FIREWALL'|'THIRD_PARTY_FIREWALL'|'IMPORT_NETWORK_FIREWALL'|'NETWORK_ACL_COMMON', 'ManagedServiceData': 'string', 'PolicyOption': { 'NetworkFirewallPolicy': { 'FirewallDeploymentModel': 'CENTRALIZED'|'DISTRIBUTED' }, 'ThirdPartyFirewallPolicy': { 'FirewallDeploymentModel': 'CENTRALIZED'|'DISTRIBUTED' }, 'NetworkAclCommonPolicy': { 'NetworkAclEntrySet': { 'FirstEntries': [ { 'IcmpTypeCode': { 'Code': 123, 'Type': 123 }, 'Protocol': 'string', 'PortRange': { 'From': 123, 'To': 123 }, 'CidrBlock': 'string', 'Ipv6CidrBlock': 'string', 'RuleAction': 'allow'|'deny', 'Egress': True|False }, ], 'ForceRemediateForFirstEntries': True|False, 'LastEntries': [ { 'IcmpTypeCode': { 'Code': 123, 'Type': 123 }, 'Protocol': 'string', 'PortRange': { 'From': 123, 'To': 123 }, 'CidrBlock': 'string', 'Ipv6CidrBlock': 'string', 'RuleAction': 'allow'|'deny', 'Egress': True|False }, ], 'ForceRemediateForLastEntries': True|False } } } }, 'ResourceType': 'string', 'ResourceTypeList': [ 'string', ], 'ResourceTags': [ { 'Key': 'string', 'Value': 'string' }, ], 'ExcludeResourceTags': True|False, 'RemediationEnabled': True|False, 'DeleteUnusedFMManagedResources': True|False, 'IncludeMap': { 'string': [ 'string', ] }, 'ExcludeMap': { 'string': [ 'string', ] }, 'ResourceSetIds': [ 'string', ], 'PolicyDescription': 'string', 'PolicyStatus': 'ACTIVE'|'OUT_OF_ADMIN_SCOPE', 'ResourceTagLogicalOperator': 'AND'|'OR' }, 'PolicyArn': 'string' } **Response Structure** * *(dict) --* * **Policy** *(dict) --* Information about the specified Firewall Manager policy. * **PolicyId** *(string) --* The ID of the Firewall Manager policy. * **PolicyName** *(string) --* The name of the Firewall Manager policy. * **PolicyUpdateToken** *(string) --* A unique identifier for each update to the policy. When issuing a "PutPolicy" request, the "PolicyUpdateToken" in the request must match the "PolicyUpdateToken" of the current policy version. To get the "PolicyUpdateToken" of the current policy version, use a "GetPolicy" request. * **SecurityServicePolicyData** *(dict) --* Details about the security service that is being used to protect the resources. * **Type** *(string) --* The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an WAF policy, a Shield Advanced policy, or a security group policy. For security group policies, Firewall Manager supports one security group for each common policy and for each content audit policy. This is an adjustable limit that you can increase by contacting Amazon Web Services Support. * **ManagedServiceData** *(string) --* Details about the service that are specific to the service type, in JSON format. * Example: "DNS_FIREWALL" ""{\"type\":\"DNS_FIREWALL\", \"preProcessRuleGroups\":[{\"ruleGroupId\":\"rslvr-fr g-1\",\"priority\":10}],\"postProcessRuleGroups\":[{\ "ruleGroupId\":\"rslvr-frg-2\",\"priority\":9911}]}"" Note: Valid values for "preProcessRuleGroups" are between 1 and 99. Valid values for "postProcessRuleGroups" are between 9901 and 10000. * Example: "IMPORT_NETWORK_FIREWALL" ""{\"type\":\"IMPO RT_NETWORK_FIREWALL\",\"awsNetworkFirewallConfig\":{\ "networkFirewallStatelessRuleGroupReferences\":[{\"re sourceARN\":\"arn:aws:network-firewall:us- west-2:000000000000:stateless-rulegroup\/rg1\",\"prio rity\":1}],\"networkFirewallStatelessDefaultActions\" :[\"aws:drop\"],\"networkFirewallStatelessFragmentDef aultActions\":[\"aws:pass\"],\"networkFirewallStatele ssCustomActions\":[],\"networkFirewallStatefulRuleGro upReferences\":[{\"resourceARN\":\"arn:aws:network- firewall:us-west-2:aws-managed:stateful-rulegroup\/Th reatSignaturesEmergingEventsStrictOrder\",\"priority\ ":8}],\"networkFirewallStatefulEngineOptions\":{\"rul eOrder\":\"STRICT_ORDER\"},\"networkFirewallStatefulD efaultActions\":[\"aws:drop_strict\"]}}"" ""{\"type\" :\"DNS_FIREWALL\",\"preProcessRuleGroups\":[{\"ruleGr oupId\":\"rslvr-frg-1\",\"priority\":10}],\"postProce ssRuleGroups\":[{\"ruleGroupId\":\"rslvr- frg-2\",\"priority\":9911}]}"" Note: Valid values for "preProcessRuleGroups" are between 1 and 99. Valid values for "postProcessRuleGroups" are between 9901 and 10000. * Example: "NETWORK_FIREWALL" - Centralized deployment model ""{\"type\":\"NETWORK_FIREWALL\",\"awsNetworkFi rewallConfig\":{\"networkFirewallStatelessRuleGroupRe ferences\":[{\"resourceARN\":\"arn:aws:network- firewall:us-east-1:123456789011:stateless-rulegroup/t est\",\"priority\":1}],\"networkFirewallStatelessDefa ultActions\":[\"aws:forward_to_sfe\",\"customActionNa me\"],\"networkFirewallStatelessFragmentDefaultAction s\":[\"aws:forward_to_sfe\",\"customActionName\"],\"n etworkFirewallStatelessCustomActions\":[{\"actionName \":\"customActionName\",\"actionDefinition\":{\"publi shMetricAction\":{\"dimensions\":[{\"value\":\"metric dimensionvalue\"}]}}}],\"networkFirewallStatefulRuleG roupReferences\":[{\"resourceARN\":\"arn:aws:network- firewall:us-east-1:123456789011:stateful-rulegroup/te st\"}],\"networkFirewallLoggingConfiguration\":{\"log DestinationConfigs\":[{\"logDestinationType\":\"S3\", \"logType\":\"ALERT\",\"logDestination\":{\"bucketNam e\":\"s3-bucket-name\"}},{\"logDestinationType\":\"S3 \",\"logType\":\"FLOW\",\"logDestination\":{\"bucketN ame\":\"s3-bucket-name\"}}],\"overrideExistingConfig\ ":true}},\"firewallDeploymentModel\":{\"centralizedFi rewallDeploymentModel\":{\"centralizedFirewallOrchest rationConfig\":{\"inspectionVpcIds\":[{\"resourceId\" :\"vpc-1234\",\"accountId\":\"123456789011\"}],\"fire wallCreationConfig\":{\"endpointLocation\":{\"availab ilityZoneConfigList\":[{\"availabilityZoneId\":null,\ "availabilityZoneName\":\"us-east-1a\",\"allowedIPV4C idrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList \":[]}}}}"" To use the centralized deployment model, you must set PolicyOption to "CENTRALIZED". * Example: "NETWORK_FIREWALL" - Distributed deployment model with automatic Availability Zone configuration ""{\"type\":\"NETWORK_FIREWALL\",\"networkFirewallSta telessRuleGroupReferences\":[{\"resourceARN\":\"arn:a ws:network-firewall:us-east-1:123456789011:stateless- rulegroup/test\",\"priority\":1}],\"networkFirewallSt atelessDefaultActions\":[\"aws:forward_to_sfe\",\"cus tomActionName\"],\"networkFirewallStatelessFragmentDe faultActions\":[\"aws:forward_to_sfe\",\"customAction Name\"],\"networkFirewallStatelessCustomActions\":[{\ "actionName\":\"customActionName\",\"actionDefinition \":{\"publishMetricAction\":{\"dimensions\":[{\"value \":\"metricdimensionvalue\"}]}}}],\"networkFirewallSt atefulRuleGroupReferences\":[{\"resourceARN\":\"arn:a ws:network-firewall:us-east-1:123456789011:stateful-r ulegroup/test\"}],\"networkFirewallOrchestrationConfi g\":{\"singleFirewallEndpointPerVPC\":false,\"allowed IPV4CidrList\":[\"10.0.0.0/28\",\"192.168.0.0/28\"],\ "routeManagementAction\":\"OFF\"},\"networkFirewallLo ggingConfiguration\":{\"logDestinationConfigs\":[{\"l ogDestinationType\":\"S3\",\"logType\":\"ALERT\",\"lo gDestination\":{\"bucketName\":\"s3-bucket-name\"}},{ \"logDestinationType\":\"S3\",\"logType\":\"FLOW\",\" logDestination\":{\"bucketName\":\"s3-bucket- name\"}}],\"overrideExistingConfig\":true}}"" With automatic Availbility Zone configuration, Firewall Manager chooses which Availability Zones to create the endpoints in. To use the distributed deployment model, you must set PolicyOption to "NULL". * Example: "NETWORK_FIREWALL" - Distributed deployment model with automatic Availability Zone configuration and route management ""{\"type\":\"NETWORK_FIREWALL\" ,\"networkFirewallStatelessRuleGroupReferences\":[{\" resourceARN\":\"arn:aws:network-firewall:us- east-1:123456789011:stateless-rulegroup/test\",\"prio rity\":1}],\"networkFirewallStatelessDefaultActions\" :[\"aws:forward_to_sfe\",\"customActionName\"],\"netw orkFirewallStatelessFragmentDefaultActions\":[\"aws:f orward_to_sfe\",\"customActionName\"],\"networkFirewa llStatelessCustomActions\":[{\"actionName\":\"customA ctionName\",\"actionDefinition\":{\"publishMetricActi on\":{\"dimensions\":[{\"value\":\"metricdimensionval ue\"}]}}}],\"networkFirewallStatefulRuleGroupReferenc es\":[{\"resourceARN\":\"arn:aws:network-firewall:us- east-1:123456789011:stateful-rulegroup/test\"}],\"net workFirewallOrchestrationConfig\":{\"singleFirewallEn dpointPerVPC\":false,\"allowedIPV4CidrList\":[\"10.0. 0.0/28\",\"192.168.0.0/28\"],\"routeManagementAction\ ":\"MONITOR\",\"routeManagementTargetTypes\":[\"Inter netGateway\"]},\"networkFirewallLoggingConfiguration\ ":{\"logDestinationConfigs\":[{\"logDestinationType\" :\"S3\",\"logType\":\"ALERT\",\"logDestination\":{\"b ucketName\":\"s3-bucket- name\"}},{\"logDestinationType\":\"S3\",\"logType\": \"FLOW\",\"logDestination\":{\"bucketName\":\"s3 -bucket-name\"}}],\"overrideExistingConfig\":true}}"" To use the distributed deployment model, you must set PolicyOption to "NULL". * Example: "NETWORK_FIREWALL" - Distributed deployment model with custom Availability Zone configuration ""{ \"type\":\"NETWORK_FIREWALL\",\"networkFirewallStatel essRuleGroupReferences\":[{\"resourceARN\":\"arn:aws :network-firewall:us-east-1:123456789011:stateless-ru legroup/test\",\"priority\":1}],\"networkFirewallStat elessDefaultActions\":[\"aws:forward_to_sfe\",\"custo mActionName\"],\"networkFirewallStatelessFragmentDefa ultActions\":[\"aws:forward_to_sfe\",\"fragmentcustom actionname\"],\"networkFirewallStatelessCustomActions \":[{\"actionName\":\"customActionName\", \"actionDef inition\":{\"publishMetricAction\":{\"dimensions\":[{ \"value\":\"metricdimensionvalue\"}]}}},{\"actionName \":\"fragmentcustomactionname\",\"actionDefinition\": {\"publishMetricAction\":{\"dimensions\":[{\"value\": \"fragmentmetricdimensionvalue\"}]}}}],\"networkFirew allStatefulRuleGroupReferences\":[{\"resourceARN\":\" arn:aws:network-firewall:us-east-1:123456789011 :stateful-rulegroup/test\"}],\"networkFirewallOrchest rationConfig\":{\"firewallCreationConfig\":{ \"endpoi ntLocation\":{\"availabilityZoneConfigList\":[{\"avai labilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrLi st\":[\"10.0.0.0/28\"]},{\"availabilityZoneName \":\"us-east-1b\",\"allowedIPV4CidrList\":[ \"10.0.0.0/28\"]}]} },\"singleFirewallEndpointPerVPC\ ":false,\"allowedIPV4CidrList\":null,\"routeManagemen tAction\":\"OFF\",\"networkFirewallLoggingConfigurati on\":{\"logDestinationConfigs\":[{\"logDestinationTyp e\":\"S3\",\"logType\":\"ALERT\",\"logDestination\":{ \"bucketName\":\"s3-bucket-name\"}},{\"logDestination Type\":\"S3\",\"logType\":\"FLOW\",\"logDestination\" :{\"bucketName\":\"s3-bucket- name\"}}],\"overrideExistingConfig\":boolean}}"" With custom Availability Zone configuration, you define which specific Availability Zones to create endpoints in by configuring "firewallCreationConfig". To configure the Availability Zones in "firewallCreationConfig", specify either the "availabilityZoneName" or "availabilityZoneId" parameter, not both parameters. To use the distributed deployment model, you must set PolicyOption to "NULL". * Example: "NETWORK_FIREWALL" - Distributed deployment model with custom Availability Zone configuration and route management ""{\"type\":\"NETWORK_FIREWALL\",\"n etworkFirewallStatelessRuleGroupReferences\":[{\"reso urceARN\":\"arn:aws:network-firewall:us- east-1:123456789011:stateless-rulegroup/test\",\"prio rity\":1}],\"networkFirewallStatelessDefaultActions\" :[\"aws:forward_to_sfe\",\"customActionName\"],\"netw orkFirewallStatelessFragmentDefaultActions\":[\"aws:f orward_to_sfe\",\"fragmentcustomactionname\"],\"netwo rkFirewallStatelessCustomActions\":[{\"actionName\":\ "customActionName\",\"actionDefinition\":{\"publishMe tricAction\":{\"dimensions\":[{\"value\":\"metricdime nsionvalue\"}]}}},{\"actionName\":\"fragmentcustomact ionname\",\"actionDefinition\":{\"publishMetricAction \":{\"dimensions\":[{\"value\":\"fragmentmetricdimens ionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupRe ferences\":[{\"resourceARN\":\"arn:aws:network- firewall:us-east-1:123456789011:stateful-rulegroup/te st\"}],\"networkFirewallOrchestrationConfig\":{\"fire wallCreationConfig\":{\"endpointLocation\":{\"availab ilityZoneConfigList\":[{\"availabilityZoneName\":\"us- east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}, {\"availabilityZoneName\":\"us-east-1b\",\"allowedIPV 4CidrList\":[\"10.0.0.0/28\"]}]}},\"singleFirewallEnd pointPerVPC\":false,\"allowedIPV4CidrList\":null,\"ro uteManagementAction\":\"MONITOR\",\"routeManagementTa rgetTypes\":[\"InternetGateway\"],\"routeManagementCo nfig\":{\"allowCrossAZTrafficIfNoEndpoint\":true}},\" networkFirewallLoggingConfiguration\":{\"logDestinati onConfigs\":[{\"logDestinationType\":\"S3\",\"logType \":\"ALERT\",\"logDestination\":{\"bucketName\":\"s3 -bucket-name\"}},{\"logDestinationType\":\"S3\",\"log Type\":\"FLOW\",\"logDestination\":{\"bucketName\":\" s3-bucket- name\"}}],\"overrideExistingConfig\":boolean}}"" To use the distributed deployment model, you must set PolicyOption to "NULL". * Example: "SECURITY_GROUPS_COMMON" ""{\"type\":\"SECUR ITY_GROUPS_COMMON\",\"securityGroups\":[{\"id\":\"sg- 03b1f67d69ed00197\"}],\"revertManualSecurityGroupChan ges\":true,\"exclusiveResourceSecurityGroupManagement \":true,\"applyToAllEC2InstanceENIs\":false,\"include SharedVPC\":true,\"enableSecurityGroupReferencesDistr ibution\":true}"" * Example: "SECURITY_GROUPS_COMMON" - Security group tag distribution """{\"type\":\"SECURITY_GROUPS_COMMON\", \"securityGroups\":[{\"id\":\"sg-000e55995d61a06bd\"} ],\"revertManualSecurityGroupChanges\":true,\"exclusi veResourceSecurityGroupManagement\":false,\"applyToAl lEC2InstanceENIs\":false,\"includeSharedVPC\":false,\ "enableTagDistribution\":true}""" Firewall Manager automatically distributes tags from the primary group to the security groups created by this policy. To use security group tag distribution, you must also set "revertManualSecurityGroupChanges" to "true", otherwise Firewall Manager won't be able to create the policy. When you enable "revertManualSecurityGroupChanges", Firewall Manager identifies and reports when the security groups created by this policy become non-compliant. Firewall Manager won't distribute system tags added by Amazon Web Services services into the replica security groups. System tags begin with the "aws:" prefix. * Example: Shared VPCs. Apply the preceding policy to resources in shared VPCs as well as to those in VPCs that the account owns ""{\"type\":\"SECURITY_GROUPS_C OMMON\",\"revertManualSecurityGroupChanges\":false,\" exclusiveResourceSecurityGroupManagement\":false, \"a pplyToAllEC2InstanceENIs\":false,\"includeSharedVPC\" :true,\"securityGroups\":[{\"id\":\" sg- 000e55995d61a06bd\"}]}"" * Example: "SECURITY_GROUPS_CONTENT_AUDIT" ""{\"type\": \"SECURITY_GROUPS_CONTENT_AUDIT\",\"preManagedOptions \":[{\"denyProtocolAllValue\":true},{\"auditSgDirecti on\":{\"type\":\"ALL\"}}],\"securityGroups\":[{\"id \":\"sg-049b2393a25468971\"}],\"securityGroupAction\" :{\"type\":\"ALLOW\"}}"" The security group action for content audit can be "ALLOW" or "DENY". For "ALLOW", all in-scope security group rules must be within the allowed range of the policy's security group rules. For "DENY", all in-scope security group rules must not contain a value or a range that matches a rule value or range in the policy security group. * Example: "SECURITY_GROUPS_USAGE_AUDIT" ""{\"type\":\" SECURITY_GROUPS_USAGE_AUDIT\",\"deleteUnusedSecurityG roups\":true,\"coalesceRedundantSecurityGroups\":true ,\"optionalDelayForUnusedInMinutes\":60}"" * Example: "SHIELD_ADVANCED" with web ACL management "" {\"type\":\"SHIELD_ADVANCED\",\"optimizeUnassociatedW ebACL\":true}"" If you set "optimizeUnassociatedWebACL" to "true", Firewall Manager creates web ACLs in accounts within the policy scope if the web ACLs will be used by at least one resource. Firewall Manager creates web ACLs in the accounts within policy scope only if the web ACLs will be used by at least one resource. If at any time an account comes into policy scope, Firewall Manager automatically creates a web ACL in the account if at least one resource will use the web ACL. Upon enablement, Firewall Manager performs a one-time cleanup of unused web ACLs in your account. The cleanup process can take several hours. If a resource leaves policy scope after Firewall Manager creates a web ACL, Firewall Manager doesn't disassociate the resource from the web ACL. If you want Firewall Manager to clean up the web ACL, you must first manually disassociate the resources from the web ACL, and then enable the manage unused web ACLs option in your policy. If you set "optimizeUnassociatedWebACL" to "false", and Firewall Manager automatically creates an empty web ACL in each account that's within policy scope. * Specification for "SHIELD_ADVANCED" for Amazon CloudFront distributions ""{\"type\":\"SHIELD_ADVANCE D\",\"automaticResponseConfiguration\": {\"automaticR esponseStatus\":\"ENABLED|IGNORED|DISABLED\", \"automaticResponseAction\":\"BLOCK|COUNT\"}, \"overrideCustomerWebaclClassic\":true|false, \"optimizeUnassociatedWebACL\":true|false}"" For example: ""{\"type\":\"SHIELD_ADVANCED\",\"automaticR esponseConfiguration\": {\"automaticResponseStatus\":\"ENABLED\", \"automaticResponseAction\":\"COUNT\"}}"" The default value for "automaticResponseStatus" is "IGNORED". The value for "automaticResponseAction" is only required when "automaticResponseStatus" is set to "ENABLED". The default value for "overrideCustomerWebaclClassic" is "false". For other resource types that you can protect with a Shield Advanced policy, this "ManagedServiceData" configuration is an empty string. * Example: "THIRD_PARTY_FIREWALL" Replace "THIRD_PARTY_FIREWALL_NAME" with the name of the third-party firewall. ""{ "type":"THIRD_PARTY_FIREWALL", "thirdPartyFirewall":"THIRD_PARTY_FIREWALL_NAME", "thirdPartyFirewallConfig":{ "thirdPartyFirewallPolicyList":["global-1"] }, "firewallDeploymentModel":{ "distributedFirewallDeploymentModel":{ "distributedFirewallOrchestrationConfig":{ "firewallCreationConfig":{ "endpointLocation":{ "availabilityZoneConfigList":[ { "availabilityZoneName":"${AvailabilityZone}" } ] } }, "allowedIPV4CidrList":[ ] } } } }"" * Example: "WAFV2" - Account takeover prevention, Bot Control managed rule groups, optimize unassociated web ACL, and rule action override ""{\"type\":\"WAFV2\",\ "preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"ove rrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupI dentifier\":{\"versionEnabled\":null,\"version\":null ,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AW SManagedRulesATPRuleSet\",\"managedRuleGroupConfigs\" :[{\"awsmanagedRulesATPRuleSet\":{\"loginPath\":\"/lo ginpath\",\"requestInspection\":{\"payloadType\":\"FO RM_ENCODED|JSON\",\"usernameField\":{\"identifier\":\ "/form/username\"},\"passwordField\":{\"identifier\": \"/form/password\"}}}}]},\"ruleGroupType\":\"ManagedR uleGroup\",\"excludeRules\":[],\"sampledRequestsEnabl ed\":true},{\"ruleGroupArn\":null,\"overrideAction\": {\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\ "versionEnabled\":null,\"version\":null,\"vendorName\ ":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesB otControlRuleSet\",\"managedRuleGroupConfigs\":[{\"aw smanagedRulesBotControlRuleSet\":{\"inspectionLevel\" :\"TARGETED|COMMON\"}}]},\"ruleGroupType\":\"ManagedR uleGroup\",\"excludeRules\":[],\"sampledRequestsEnabl ed\":true,\"ruleActionOverrides\":[{\"name\":\"Rule1\ ",\"actionToUse\":{\"allow|block|count|captcha|challe nge\":{}}},{\"name\":\"Rule2\",\"actionToUse\":{\"all ow|block|count|captcha|challenge\":{}}}]}],\"postProc essRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLO W\"},\"customRequestHandling\":null,\"customResponse\ ":null,\"overrideCustomerWebACLAssociation\":false,\" loggingConfiguration\":null,\"sampledRequestsEnabledF orDefaultActions\":true,\"optimizeUnassociatedWebACL\ ":true}"" * Bot Control - For information about "AWSManagedRulesBotControlRuleSet" managed rule groups, see AWSManagedRulesBotControlRuleSet in the *WAF API Reference*. * Fraud Control account takeover prevention (ATP) - For information about the properties available for "AWSManagedRulesATPRuleSet" managed rule groups, see AWSManagedRulesATPRuleSet in the *WAF API Reference*. * Optimize unassociated web ACL - If you set "optimizeUnassociatedWebACL" to "true", Firewall Manager creates web ACLs in accounts within the policy scope if the web ACLs will be used by at least one resource. Firewall Manager creates web ACLs in the accounts within policy scope only if the web ACLs will be used by at least one resource. If at any time an account comes into policy scope, Firewall Manager automatically creates a web ACL in the account if at least one resource will use the web ACL. Upon enablement, Firewall Manager performs a one-time cleanup of unused web ACLs in your account. The cleanup process can take several hours. If a resource leaves policy scope after Firewall Manager creates a web ACL, Firewall Manager disassociates the resource from the web ACL, but won't clean up the unused web ACL. Firewall Manager only cleans up unused web ACLs when you first enable management of unused web ACLs in a policy. If you set "optimizeUnassociatedWebACL" to "false" Firewall Manager doesn't manage unused web ACLs, and Firewall Manager automatically creates an empty web ACL in each account that's within policy scope. * Rule action overrides - Firewall Manager supports rule action overrides only for managed rule groups. To configure a "RuleActionOverrides" add the "Name" of the rule to override, and "ActionToUse", which is the new action to use for the rule. For information about using rule action override, see RuleActionOverride in the *WAF API Reference*. * Example: "WAFV2" - "CAPTCHA" and "Challenge" configs ""{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ru leGroupArn\":null,\"overrideAction\":{\"type\":\"NONE \"},\"managedRuleGroupIdentifier\":{\"versionEnabled\ ":null,\"version\":null,\"vendorName\":\"AWS\",\"mana gedRuleGroupName\":\"AWSManagedRulesAdminProtectionRu leSet\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"exc ludeRules\":[],\"sampledRequestsEnabled\":true}],\"po stProcessRuleGroups\":[],\"defaultAction\":{\"type\": \"ALLOW\"},\"customRequestHandling\":null,\"customRes ponse\":null,\"overrideCustomerWebACLAssociation\":fa lse,\"loggingConfiguration\":null,\"sampledRequestsEn abledForDefaultActions\":true,\"captchaConfig\":{\"im munityTimeProperty\":{\"immunityTime\":500}},\"challe ngeConfig\":{\"immunityTimeProperty\":{\"immunityTime \":800}},\"tokenDomains\":[\"google.com\",\"amazon.co m\"],\"associationConfig\":{\"requestBody\":{\"CLOUDF RONT\":{\"defaultSizeInspectionLimit\":\"KB_16\"}}}}"" * "CAPTCHA" and "Challenge" configs - If you update the policy's values for "associationConfig", "captchaConfig", "challengeConfig", or "tokenDomains", Firewall Manager will overwrite your local web ACLs to contain the new value(s). However, if you don't update the policy's "associationConfig", "captchaConfig", "challengeConfig", or "tokenDomains" values, the values in your local web ACLs will remain unchanged. For information about association configs, see AssociationConfig. For information about CAPTCHA and Challenge configs, see CaptchaConfig and ChallengeConfig in the *WAF API Reference*. * "defaultSizeInspectionLimit" - Specifies the maximum size of the web request body component that an associated Amazon CloudFront distribution should send to WAF for inspection. For more information, see DefaultSizeInspectionLimit in the *WAF API Reference*. * Example: "WAFV2" - Firewall Manager support for WAF managed rule group versioning ""{\"preProcessRuleGrou ps\":[{\"ruleGroupType\":\"ManagedRuleGroup\",\"overr ideAction\":{\"type\":\"NONE\"},\"sampledRequestsEnab led\":true,\"managedRuleGroupIdentifier\":{\"managedR uleGroupName\":\"AWSManagedRulesAdminProtectionRuleSe t\",\"vendorName\":\"AWS\",\"managedRuleGroupConfigs\ ":null}}],\"postProcessRuleGroups\":[],\"defaultActio n\":{\"type\":\"ALLOW\"},\"customRequestHandling\":nu ll,\"tokenDomains\":null,\"customResponse\":null,\"ty pe\":\"WAFV2\",\"overrideCustomerWebACLAssociation\": false,\"sampledRequestsEnabledForDefaultActions\":tru e,\"optimizeUnassociatedWebACL\":true,\"webACLSource\ ":\"RETROFIT_EXISTING\"}"" To use a specific version of a WAF managed rule group in your Firewall Manager policy, you must set "versionEnabled" to "true", and set "version" to the version you'd like to use. If you don't set "versionEnabled" to "true", or if you omit "versionEnabled", then Firewall Manager uses the default version of the WAF managed rule group. * Example: "WAFV2" - Logging configurations ""{\"type\" :\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\ ":null, \"overrideAction\":{\"type\":\"NONE\"},\"mana gedRuleGroupIdentifier\": {\"versionEnabled\":null,\" version\":null,\"vendorName\":\"AWS\", \"managedRuleG roupName\":\"AWSManagedRulesAdminProtectionRuleSet\"} ,\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRule s\":[], \"sampledRequestsEnabled\":true}],\"postProce ssRuleGroups\":[], \"defaultAction\":{\"type\":\"ALLO W\"},\"customRequestHandling\" :null,\"customResponse \":null,\"overrideCustomerWebACLAssociation\" :false, \"loggingConfiguration\":{\"logDestinationConfigs\": [\"arn:aws:s3:::aws-waf-logs-example-bucket\"] ,\"red actedFields\":[],\"loggingFilterConfigs\":{\"defaultB ehavior\":\"KEEP\", \"filters\":[{\"behavior\":\"KEEP \",\"requirement\":\"MEETS_ALL\", \"conditions\":[{\" actionCondition\":\"CAPTCHA\"},{\"actionCondition\": \"CHALLENGE\"}, {\"actionCondition\":\"EXCLUDED_AS_CO UNT\"}]}]}},\"sampledRequestsEnabledForDefaultActions \":true}"" Firewall Manager supports Amazon Kinesis Data Firehose and Amazon S3 as the "logDestinationConfigs" in your "loggingConfiguration". For information about WAF logging configurations, see LoggingConfiguration in the *WAF API Reference* In the "loggingConfiguration", you can specify one "logDestinationConfigs". Optionally provide as many as 20 "redactedFields". The "RedactedFieldType" must be one of "URI", "QUERY_STRING", "HEADER", or "METHOD". * Example: "WAF Classic" ""{\"ruleGroups\":[{\"id\":\"78cb36c0-1b5e-4d7d-82b2- cf48d3ad9659\",\"overrideAction\":{\"type\":\"NONE\"} }],\"overrideCustomerWebACLAssociation\":true,\"defau ltAction\":{\"type\":\"ALLOW\"},\"type\":\"WAF\"}"" * **PolicyOption** *(dict) --* Contains the settings to configure a network ACL policy, a Network Firewall firewall policy deployment model, or a third-party firewall policy. * **NetworkFirewallPolicy** *(dict) --* Defines the deployment model to use for the firewall policy. * **FirewallDeploymentModel** *(string) --* Defines the deployment model to use for the firewall policy. To use a distributed model, set PolicyOption to "NULL". * **ThirdPartyFirewallPolicy** *(dict) --* Defines the policy options for a third-party firewall policy. * **FirewallDeploymentModel** *(string) --* Defines the deployment model to use for the third- party firewall policy. * **NetworkAclCommonPolicy** *(dict) --* Defines a Firewall Manager network ACL policy. * **NetworkAclEntrySet** *(dict) --* The definition of the first and last rules for the network ACL policy. * **FirstEntries** *(list) --* The rules that you want to run first in the Firewall Manager managed network ACLs. Note: Provide these in the order in which you want them to run. Firewall Manager will assign the specific rule numbers for you, in the network ACLs that it creates. You must specify at least one first entry or one last entry in any network ACL policy. * *(dict) --* Describes a rule in a network ACL. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the network ACL, Amazon Web Services processes the entries in the network ACL according to the rule numbers, in ascending order. When you manage an individual network ACL, you explicitly specify the rule numbers. When you specify the network ACL rules in a Firewall Manager policy, you provide the rules to run first, in the order that you want them to run, and the rules to run last, in the order that you want them to run. Firewall Manager assigns the rule numbers for you when you save the network ACL policy specification. * **IcmpTypeCode** *(dict) --* ICMP protocol: The ICMP type and code. * **Code** *(integer) --* ICMP code. * **Type** *(integer) --* ICMP type. * **Protocol** *(string) --* The protocol number. A value of "-1" means all protocols. * **PortRange** *(dict) --* TCP or UDP protocols: The range of ports the rule applies to. * **From** *(integer) --* The beginning port number of the range. * **To** *(integer) --* The ending port number of the range. * **CidrBlock** *(string) --* The IPv4 network range to allow or deny, in CIDR notation. * **Ipv6CidrBlock** *(string) --* The IPv6 network range to allow or deny, in CIDR notation. * **RuleAction** *(string) --* Indicates whether to allow or deny the traffic that matches the rule. * **Egress** *(boolean) --* Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). If it's not an egress rule, then it's an ingress, or inbound, rule. * **ForceRemediateForFirstEntries** *(boolean) --* Applies only when remediation is enabled for the policy as a whole. Firewall Manager uses this setting when it finds policy violations that involve conflicts between the custom entries and the policy entries. If forced remediation is disabled, Firewall Manager marks the network ACL as noncompliant and does not try to remediate. For more information about the remediation behavior, see Remediation for managed network ACLs in the *Firewall Manager Developer Guide*. * **LastEntries** *(list) --* The rules that you want to run last in the Firewall Manager managed network ACLs. Note: Provide these in the order in which you want them to run. Firewall Manager will assign the specific rule numbers for you, in the network ACLs that it creates. You must specify at least one first entry or one last entry in any network ACL policy. * *(dict) --* Describes a rule in a network ACL. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the network ACL, Amazon Web Services processes the entries in the network ACL according to the rule numbers, in ascending order. When you manage an individual network ACL, you explicitly specify the rule numbers. When you specify the network ACL rules in a Firewall Manager policy, you provide the rules to run first, in the order that you want them to run, and the rules to run last, in the order that you want them to run. Firewall Manager assigns the rule numbers for you when you save the network ACL policy specification. * **IcmpTypeCode** *(dict) --* ICMP protocol: The ICMP type and code. * **Code** *(integer) --* ICMP code. * **Type** *(integer) --* ICMP type. * **Protocol** *(string) --* The protocol number. A value of "-1" means all protocols. * **PortRange** *(dict) --* TCP or UDP protocols: The range of ports the rule applies to. * **From** *(integer) --* The beginning port number of the range. * **To** *(integer) --* The ending port number of the range. * **CidrBlock** *(string) --* The IPv4 network range to allow or deny, in CIDR notation. * **Ipv6CidrBlock** *(string) --* The IPv6 network range to allow or deny, in CIDR notation. * **RuleAction** *(string) --* Indicates whether to allow or deny the traffic that matches the rule. * **Egress** *(boolean) --* Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). If it's not an egress rule, then it's an ingress, or inbound, rule. * **ForceRemediateForLastEntries** *(boolean) --* Applies only when remediation is enabled for the policy as a whole. Firewall Manager uses this setting when it finds policy violations that involve conflicts between the custom entries and the policy entries. If forced remediation is disabled, Firewall Manager marks the network ACL as noncompliant and does not try to remediate. For more information about the remediation behavior, see Remediation for managed network ACLs in the *Firewall Manager Developer Guide*. * **ResourceType** *(string) --* The type of resource protected by or in scope of the policy. This is in the format shown in the Amazon Web Services Resource Types Reference. To apply this policy to multiple resource types, specify a resource type of "ResourceTypeList" and then specify the resource types in a "ResourceTypeList". The following are valid resource types for each Firewall Manager policy type: * Amazon Web Services WAF Classic - "AWS::ApiGateway::Stage", "AWS::CloudFront::Distribution", and "AWS::ElasticLoadBalancingV2::LoadBalancer". * WAF - "AWS::ApiGateway::Stage", "AWS::ElasticLoadBalancingV2::LoadBalancer", and "AWS::CloudFront::Distribution". * Shield Advanced - "AWS::ElasticLoadBalancingV2::LoadBalancer", "AWS::ElasticLoadBalancing::LoadBalancer", "AWS::EC2::EIP", and "AWS::CloudFront::Distribution". * Network ACL - "AWS::EC2::Subnet". * Security group usage audit - "AWS::EC2::SecurityGroup". * Security group content audit - "AWS::EC2::SecurityGroup", "AWS::EC2::NetworkInterface", and "AWS::EC2::Instance". * DNS Firewall, Network Firewall, and third-party firewall - "AWS::EC2::VPC". * **ResourceTypeList** *(list) --* An array of "ResourceType" objects. Use this only to specify multiple resource types. To specify a single resource type, use "ResourceType". * *(string) --* * **ResourceTags** *(list) --* An array of "ResourceTag" objects. * *(dict) --* The resource tags that Firewall Manager uses to determine if a particular resource should be included or excluded from the Firewall Manager policy. Tags enable you to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value. If you add more than one tag to a policy, you can specify whether to combine them using the logical AND operator or the logical OR operator. For more information, see Working with Tag Editor. Every resource tag must have a string value, either a non-empty string or an empty string. If you don't provide a value for a resource tag, Firewall Manager saves the value as an empty string: "". When Firewall Manager compares tags, it only matches two tags if they have the same key and the same value. A tag with an empty string value only matches with tags that also have an empty string value. * **Key** *(string) --* The resource tag key. * **Value** *(string) --* The resource tag value. To specify an empty string value, either don't provide this or specify it as "". * **ExcludeResourceTags** *(boolean) --* If set to "True", resources with the tags that are specified in the "ResourceTag" array are not in scope of the policy. If set to "False", and the "ResourceTag" array is not null, only resources with the specified tags are in scope of the policy. * **RemediationEnabled** *(boolean) --* Indicates if the policy should be automatically applied to new resources. * **DeleteUnusedFMManagedResources** *(boolean) --* Indicates whether Firewall Manager should automatically remove protections from resources that leave the policy scope and clean up resources that Firewall Manager is managing for accounts when those accounts leave policy scope. For example, Firewall Manager will disassociate a Firewall Manager managed web ACL from a protected customer resource when the customer resource leaves policy scope. By default, Firewall Manager doesn't remove protections or delete Firewall Manager managed resources. This option is not available for Shield Advanced or WAF Classic policies. * **IncludeMap** *(dict) --* Specifies the Amazon Web Services account IDs and Organizations organizational units (OUs) to include in the policy. Specifying an OU is the equivalent of specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time. You can specify inclusions or exclusions, but not both. If you specify an "IncludeMap", Firewall Manager applies the policy to all accounts specified by the "IncludeMap", and does not evaluate any "ExcludeMap" specifications. If you do not specify an "IncludeMap", then Firewall Manager applies the policy to all accounts except for those specified by the "ExcludeMap". You can specify account IDs, OUs, or a combination: * Specify account IDs by setting the key to "ACCOUNT". For example, the following is a valid map: "{“ACCOUNT” : [“accountID1”, “accountID2”]}". * Specify OUs by setting the key to "ORG_UNIT". For example, the following is a valid map: "{“ORG_UNIT” : [“ouid111”, “ouid112”]}". * Specify accounts and OUs together in a single map, separated with a comma. For example, the following is a valid map: "{“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}". * *(string) --* * *(list) --* * *(string) --* * **ExcludeMap** *(dict) --* Specifies the Amazon Web Services account IDs and Organizations organizational units (OUs) to exclude from the policy. Specifying an OU is the equivalent of specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time. You can specify inclusions or exclusions, but not both. If you specify an "IncludeMap", Firewall Manager applies the policy to all accounts specified by the "IncludeMap", and does not evaluate any "ExcludeMap" specifications. If you do not specify an "IncludeMap", then Firewall Manager applies the policy to all accounts except for those specified by the "ExcludeMap". You can specify account IDs, OUs, or a combination: * Specify account IDs by setting the key to "ACCOUNT". For example, the following is a valid map: "{“ACCOUNT” : [“accountID1”, “accountID2”]}". * Specify OUs by setting the key to "ORG_UNIT". For example, the following is a valid map: "{“ORG_UNIT” : [“ouid111”, “ouid112”]}". * Specify accounts and OUs together in a single map, separated with a comma. For example, the following is a valid map: "{“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}". * *(string) --* * *(list) --* * *(string) --* * **ResourceSetIds** *(list) --* The unique identifiers of the resource sets used by the policy. * *(string) --* * **PolicyDescription** *(string) --* Your description of the Firewall Manager policy. * **PolicyStatus** *(string) --* Indicates whether the policy is in or out of an admin's policy or Region scope. * "ACTIVE" - The administrator can manage and delete the policy. * "OUT_OF_ADMIN_SCOPE" - The administrator can view the policy, but they can't edit or delete the policy. Existing policy protections stay in place. Any new resources that come into scope of the policy won't be protected. * **ResourceTagLogicalOperator** *(string) --* Specifies whether to combine multiple resource tags with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. Default: "AND" * **PolicyArn** *(string) --* The Amazon Resource Name (ARN) of the specified policy. **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" * "FMS.Client.exceptions.InvalidTypeException" FMS / Client / get_resource_set get_resource_set **************** FMS.Client.get_resource_set(**kwargs) Gets information about a specific resource set. See also: AWS API Documentation **Request Syntax** response = client.get_resource_set( Identifier='string' ) Parameters: **Identifier** (*string*) -- **[REQUIRED]** A unique identifier for the resource set, used in a request to refer to the resource set. Return type: dict Returns: **Response Syntax** { 'ResourceSet': { 'Id': 'string', 'Name': 'string', 'Description': 'string', 'UpdateToken': 'string', 'ResourceTypeList': [ 'string', ], 'LastUpdateTime': datetime(2015, 1, 1), 'ResourceSetStatus': 'ACTIVE'|'OUT_OF_ADMIN_SCOPE' }, 'ResourceSetArn': 'string' } **Response Structure** * *(dict) --* * **ResourceSet** *(dict) --* Information about the specified resource set. * **Id** *(string) --* A unique identifier for the resource set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete. * **Name** *(string) --* The descriptive name of the resource set. You can't change the name of a resource set after you create it. * **Description** *(string) --* A description of the resource set. * **UpdateToken** *(string) --* An optional token that you can use for optimistic locking. Firewall Manager returns a token to your requests that access the resource set. The token marks the state of the resource set resource at the time of the request. Update tokens are not allowed when creating a resource set. After creation, each subsequent update call to the resource set requires the update token. To make an unconditional change to the resource set, omit the token in your update request. Without the token, Firewall Manager performs your updates regardless of whether the resource set has changed since you last retrieved it. To make a conditional change to the resource set, provide the token in your update request. Firewall Manager uses the token to ensure that the resource set hasn't changed since you last retrieved it. If it has changed, the operation fails with an "InvalidTokenException". If this happens, retrieve the resource set again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token. * **ResourceTypeList** *(list) --* Determines the resources that can be associated to the resource set. Depending on your setting for max results and the number of resource sets, a single call might not return the full list. * *(string) --* * **LastUpdateTime** *(datetime) --* The last time that the resource set was changed. * **ResourceSetStatus** *(string) --* Indicates whether the resource set is in or out of an admin's Region scope. * "ACTIVE" - The administrator can manage and delete the resource set. * "OUT_OF_ADMIN_SCOPE" - The administrator can view the resource set, but they can't edit or delete the resource set. Existing protections stay in place. Any new resource that come into scope of the resource set won't be protected. * **ResourceSetArn** *(string) --* The Amazon Resource Name (ARN) of the resource set. **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / batch_associate_resource batch_associate_resource ************************ FMS.Client.batch_associate_resource(**kwargs) Associate resources to a Firewall Manager resource set. See also: AWS API Documentation **Request Syntax** response = client.batch_associate_resource( ResourceSetIdentifier='string', Items=[ 'string', ] ) Parameters: * **ResourceSetIdentifier** (*string*) -- **[REQUIRED]** A unique identifier for the resource set, used in a request to refer to the resource set. * **Items** (*list*) -- **[REQUIRED]** The uniform resource identifiers (URIs) of resources that should be associated to the resource set. The URIs must be Amazon Resource Names (ARNs). * *(string) --* Return type: dict Returns: **Response Syntax** { 'ResourceSetIdentifier': 'string', 'FailedItems': [ { 'URI': 'string', 'Reason': 'NOT_VALID_ARN'|'NOT_VALID_PARTITION'|'NOT_VALID_REGION'|'NOT_VALID_SERVICE'|'NOT_VALID_RESOURCE_TYPE'|'NOT_VALID_ACCOUNT_ID' }, ] } **Response Structure** * *(dict) --* * **ResourceSetIdentifier** *(string) --* A unique identifier for the resource set, used in a request to refer to the resource set. * **FailedItems** *(list) --* The resources that failed to associate to the resource set. * *(dict) --* Details of a resource that failed when trying to update it's association to a resource set. * **URI** *(string) --* The univeral resource indicator (URI) of the resource that failed. * **Reason** *(string) --* The reason the resource's association could not be updated. **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.LimitExceededException" * "FMS.Client.exceptions.ResourceNotFoundException" FMS / Client / get_violation_details get_violation_details ********************* FMS.Client.get_violation_details(**kwargs) Retrieves violations for a resource based on the specified Firewall Manager policy and Amazon Web Services account. See also: AWS API Documentation **Request Syntax** response = client.get_violation_details( PolicyId='string', MemberAccount='string', ResourceId='string', ResourceType='string' ) Parameters: * **PolicyId** (*string*) -- **[REQUIRED]** The ID of the Firewall Manager policy that you want the details for. You can get violation details for the following policy types: * WAF * DNS Firewall * Imported Network Firewall * Network Firewall * Security group content audit * Network ACL * Third-party firewall * **MemberAccount** (*string*) -- **[REQUIRED]** The Amazon Web Services account ID that you want the details for. * **ResourceId** (*string*) -- **[REQUIRED]** The ID of the resource that has violations. * **ResourceType** (*string*) -- **[REQUIRED]** The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. Supported resource types are: "AWS::WAFv2::WebACL", "AWS::EC2::Instance", "AWS::EC2::NetworkInterface", "AWS::EC2::SecurityGroup", "AWS::NetworkFirewall::FirewallPolicy", and "AWS::EC2::Subnet". Return type: dict Returns: **Response Syntax** { 'ViolationDetail': { 'PolicyId': 'string', 'MemberAccount': 'string', 'ResourceId': 'string', 'ResourceType': 'string', 'ResourceViolations': [ { 'AwsVPCSecurityGroupViolation': { 'ViolationTarget': 'string', 'ViolationTargetDescription': 'string', 'PartialMatches': [ { 'Reference': 'string', 'TargetViolationReasons': [ 'string', ] }, ], 'PossibleSecurityGroupRemediationActions': [ { 'RemediationActionType': 'REMOVE'|'MODIFY', 'Description': 'string', 'RemediationResult': { 'IPV4Range': 'string', 'IPV6Range': 'string', 'PrefixListId': 'string', 'Protocol': 'string', 'FromPort': 123, 'ToPort': 123 }, 'IsDefaultAction': True|False }, ] }, 'AwsEc2NetworkInterfaceViolation': { 'ViolationTarget': 'string', 'ViolatingSecurityGroups': [ 'string', ] }, 'AwsEc2InstanceViolation': { 'ViolationTarget': 'string', 'AwsEc2NetworkInterfaceViolations': [ { 'ViolationTarget': 'string', 'ViolatingSecurityGroups': [ 'string', ] }, ] }, 'NetworkFirewallMissingFirewallViolation': { 'ViolationTarget': 'string', 'VPC': 'string', 'AvailabilityZone': 'string', 'TargetViolationReason': 'string' }, 'NetworkFirewallMissingSubnetViolation': { 'ViolationTarget': 'string', 'VPC': 'string', 'AvailabilityZone': 'string', 'TargetViolationReason': 'string' }, 'NetworkFirewallMissingExpectedRTViolation': { 'ViolationTarget': 'string', 'VPC': 'string', 'AvailabilityZone': 'string', 'CurrentRouteTable': 'string', 'ExpectedRouteTable': 'string' }, 'NetworkFirewallPolicyModifiedViolation': { 'ViolationTarget': 'string', 'CurrentPolicyDescription': { 'StatelessRuleGroups': [ { 'RuleGroupName': 'string', 'ResourceId': 'string', 'Priority': 123 }, ], 'StatelessDefaultActions': [ 'string', ], 'StatelessFragmentDefaultActions': [ 'string', ], 'StatelessCustomActions': [ 'string', ], 'StatefulRuleGroups': [ { 'RuleGroupName': 'string', 'ResourceId': 'string', 'Priority': 123, 'Override': { 'Action': 'DROP_TO_ALERT' } }, ], 'StatefulDefaultActions': [ 'string', ], 'StatefulEngineOptions': { 'RuleOrder': 'STRICT_ORDER'|'DEFAULT_ACTION_ORDER', 'StreamExceptionPolicy': 'DROP'|'CONTINUE'|'REJECT'|'FMS_IGNORE' } }, 'ExpectedPolicyDescription': { 'StatelessRuleGroups': [ { 'RuleGroupName': 'string', 'ResourceId': 'string', 'Priority': 123 }, ], 'StatelessDefaultActions': [ 'string', ], 'StatelessFragmentDefaultActions': [ 'string', ], 'StatelessCustomActions': [ 'string', ], 'StatefulRuleGroups': [ { 'RuleGroupName': 'string', 'ResourceId': 'string', 'Priority': 123, 'Override': { 'Action': 'DROP_TO_ALERT' } }, ], 'StatefulDefaultActions': [ 'string', ], 'StatefulEngineOptions': { 'RuleOrder': 'STRICT_ORDER'|'DEFAULT_ACTION_ORDER', 'StreamExceptionPolicy': 'DROP'|'CONTINUE'|'REJECT'|'FMS_IGNORE' } } }, 'NetworkFirewallInternetTrafficNotInspectedViolation': { 'SubnetId': 'string', 'SubnetAvailabilityZone': 'string', 'RouteTableId': 'string', 'ViolatingRoutes': [ { 'DestinationType': 'IPV4'|'IPV6'|'PREFIX_LIST', 'TargetType': 'GATEWAY'|'CARRIER_GATEWAY'|'INSTANCE'|'LOCAL_GATEWAY'|'NAT_GATEWAY'|'NETWORK_INTERFACE'|'VPC_ENDPOINT'|'VPC_PEERING_CONNECTION'|'EGRESS_ONLY_INTERNET_GATEWAY'|'TRANSIT_GATEWAY', 'Destination': 'string', 'Target': 'string' }, ], 'IsRouteTableUsedInDifferentAZ': True|False, 'CurrentFirewallSubnetRouteTable': 'string', 'ExpectedFirewallEndpoint': 'string', 'FirewallSubnetId': 'string', 'ExpectedFirewallSubnetRoutes': [ { 'IpV4Cidr': 'string', 'PrefixListId': 'string', 'IpV6Cidr': 'string', 'ContributingSubnets': [ 'string', ], 'AllowedTargets': [ 'string', ], 'RouteTableId': 'string' }, ], 'ActualFirewallSubnetRoutes': [ { 'DestinationType': 'IPV4'|'IPV6'|'PREFIX_LIST', 'TargetType': 'GATEWAY'|'CARRIER_GATEWAY'|'INSTANCE'|'LOCAL_GATEWAY'|'NAT_GATEWAY'|'NETWORK_INTERFACE'|'VPC_ENDPOINT'|'VPC_PEERING_CONNECTION'|'EGRESS_ONLY_INTERNET_GATEWAY'|'TRANSIT_GATEWAY', 'Destination': 'string', 'Target': 'string' }, ], 'InternetGatewayId': 'string', 'CurrentInternetGatewayRouteTable': 'string', 'ExpectedInternetGatewayRoutes': [ { 'IpV4Cidr': 'string', 'PrefixListId': 'string', 'IpV6Cidr': 'string', 'ContributingSubnets': [ 'string', ], 'AllowedTargets': [ 'string', ], 'RouteTableId': 'string' }, ], 'ActualInternetGatewayRoutes': [ { 'DestinationType': 'IPV4'|'IPV6'|'PREFIX_LIST', 'TargetType': 'GATEWAY'|'CARRIER_GATEWAY'|'INSTANCE'|'LOCAL_GATEWAY'|'NAT_GATEWAY'|'NETWORK_INTERFACE'|'VPC_ENDPOINT'|'VPC_PEERING_CONNECTION'|'EGRESS_ONLY_INTERNET_GATEWAY'|'TRANSIT_GATEWAY', 'Destination': 'string', 'Target': 'string' }, ], 'VpcId': 'string' }, 'NetworkFirewallInvalidRouteConfigurationViolation': { 'AffectedSubnets': [ 'string', ], 'RouteTableId': 'string', 'IsRouteTableUsedInDifferentAZ': True|False, 'ViolatingRoute': { 'DestinationType': 'IPV4'|'IPV6'|'PREFIX_LIST', 'TargetType': 'GATEWAY'|'CARRIER_GATEWAY'|'INSTANCE'|'LOCAL_GATEWAY'|'NAT_GATEWAY'|'NETWORK_INTERFACE'|'VPC_ENDPOINT'|'VPC_PEERING_CONNECTION'|'EGRESS_ONLY_INTERNET_GATEWAY'|'TRANSIT_GATEWAY', 'Destination': 'string', 'Target': 'string' }, 'CurrentFirewallSubnetRouteTable': 'string', 'ExpectedFirewallEndpoint': 'string', 'ActualFirewallEndpoint': 'string', 'ExpectedFirewallSubnetId': 'string', 'ActualFirewallSubnetId': 'string', 'ExpectedFirewallSubnetRoutes': [ { 'IpV4Cidr': 'string', 'PrefixListId': 'string', 'IpV6Cidr': 'string', 'ContributingSubnets': [ 'string', ], 'AllowedTargets': [ 'string', ], 'RouteTableId': 'string' }, ], 'ActualFirewallSubnetRoutes': [ { 'DestinationType': 'IPV4'|'IPV6'|'PREFIX_LIST', 'TargetType': 'GATEWAY'|'CARRIER_GATEWAY'|'INSTANCE'|'LOCAL_GATEWAY'|'NAT_GATEWAY'|'NETWORK_INTERFACE'|'VPC_ENDPOINT'|'VPC_PEERING_CONNECTION'|'EGRESS_ONLY_INTERNET_GATEWAY'|'TRANSIT_GATEWAY', 'Destination': 'string', 'Target': 'string' }, ], 'InternetGatewayId': 'string', 'CurrentInternetGatewayRouteTable': 'string', 'ExpectedInternetGatewayRoutes': [ { 'IpV4Cidr': 'string', 'PrefixListId': 'string', 'IpV6Cidr': 'string', 'ContributingSubnets': [ 'string', ], 'AllowedTargets': [ 'string', ], 'RouteTableId': 'string' }, ], 'ActualInternetGatewayRoutes': [ { 'DestinationType': 'IPV4'|'IPV6'|'PREFIX_LIST', 'TargetType': 'GATEWAY'|'CARRIER_GATEWAY'|'INSTANCE'|'LOCAL_GATEWAY'|'NAT_GATEWAY'|'NETWORK_INTERFACE'|'VPC_ENDPOINT'|'VPC_PEERING_CONNECTION'|'EGRESS_ONLY_INTERNET_GATEWAY'|'TRANSIT_GATEWAY', 'Destination': 'string', 'Target': 'string' }, ], 'VpcId': 'string' }, 'NetworkFirewallBlackHoleRouteDetectedViolation': { 'ViolationTarget': 'string', 'RouteTableId': 'string', 'VpcId': 'string', 'ViolatingRoutes': [ { 'DestinationType': 'IPV4'|'IPV6'|'PREFIX_LIST', 'TargetType': 'GATEWAY'|'CARRIER_GATEWAY'|'INSTANCE'|'LOCAL_GATEWAY'|'NAT_GATEWAY'|'NETWORK_INTERFACE'|'VPC_ENDPOINT'|'VPC_PEERING_CONNECTION'|'EGRESS_ONLY_INTERNET_GATEWAY'|'TRANSIT_GATEWAY', 'Destination': 'string', 'Target': 'string' }, ] }, 'NetworkFirewallUnexpectedFirewallRoutesViolation': { 'FirewallSubnetId': 'string', 'ViolatingRoutes': [ { 'DestinationType': 'IPV4'|'IPV6'|'PREFIX_LIST', 'TargetType': 'GATEWAY'|'CARRIER_GATEWAY'|'INSTANCE'|'LOCAL_GATEWAY'|'NAT_GATEWAY'|'NETWORK_INTERFACE'|'VPC_ENDPOINT'|'VPC_PEERING_CONNECTION'|'EGRESS_ONLY_INTERNET_GATEWAY'|'TRANSIT_GATEWAY', 'Destination': 'string', 'Target': 'string' }, ], 'RouteTableId': 'string', 'FirewallEndpoint': 'string', 'VpcId': 'string' }, 'NetworkFirewallUnexpectedGatewayRoutesViolation': { 'GatewayId': 'string', 'ViolatingRoutes': [ { 'DestinationType': 'IPV4'|'IPV6'|'PREFIX_LIST', 'TargetType': 'GATEWAY'|'CARRIER_GATEWAY'|'INSTANCE'|'LOCAL_GATEWAY'|'NAT_GATEWAY'|'NETWORK_INTERFACE'|'VPC_ENDPOINT'|'VPC_PEERING_CONNECTION'|'EGRESS_ONLY_INTERNET_GATEWAY'|'TRANSIT_GATEWAY', 'Destination': 'string', 'Target': 'string' }, ], 'RouteTableId': 'string', 'VpcId': 'string' }, 'NetworkFirewallMissingExpectedRoutesViolation': { 'ViolationTarget': 'string', 'ExpectedRoutes': [ { 'IpV4Cidr': 'string', 'PrefixListId': 'string', 'IpV6Cidr': 'string', 'ContributingSubnets': [ 'string', ], 'AllowedTargets': [ 'string', ], 'RouteTableId': 'string' }, ], 'VpcId': 'string' }, 'DnsRuleGroupPriorityConflictViolation': { 'ViolationTarget': 'string', 'ViolationTargetDescription': 'string', 'ConflictingPriority': 123, 'ConflictingPolicyId': 'string', 'UnavailablePriorities': [ 123, ] }, 'DnsDuplicateRuleGroupViolation': { 'ViolationTarget': 'string', 'ViolationTargetDescription': 'string' }, 'DnsRuleGroupLimitExceededViolation': { 'ViolationTarget': 'string', 'ViolationTargetDescription': 'string', 'NumberOfRuleGroupsAlreadyAssociated': 123 }, 'FirewallSubnetIsOutOfScopeViolation': { 'FirewallSubnetId': 'string', 'VpcId': 'string', 'SubnetAvailabilityZone': 'string', 'SubnetAvailabilityZoneId': 'string', 'VpcEndpointId': 'string' }, 'RouteHasOutOfScopeEndpointViolation': { 'SubnetId': 'string', 'VpcId': 'string', 'RouteTableId': 'string', 'ViolatingRoutes': [ { 'DestinationType': 'IPV4'|'IPV6'|'PREFIX_LIST', 'TargetType': 'GATEWAY'|'CARRIER_GATEWAY'|'INSTANCE'|'LOCAL_GATEWAY'|'NAT_GATEWAY'|'NETWORK_INTERFACE'|'VPC_ENDPOINT'|'VPC_PEERING_CONNECTION'|'EGRESS_ONLY_INTERNET_GATEWAY'|'TRANSIT_GATEWAY', 'Destination': 'string', 'Target': 'string' }, ], 'SubnetAvailabilityZone': 'string', 'SubnetAvailabilityZoneId': 'string', 'CurrentFirewallSubnetRouteTable': 'string', 'FirewallSubnetId': 'string', 'FirewallSubnetRoutes': [ { 'DestinationType': 'IPV4'|'IPV6'|'PREFIX_LIST', 'TargetType': 'GATEWAY'|'CARRIER_GATEWAY'|'INSTANCE'|'LOCAL_GATEWAY'|'NAT_GATEWAY'|'NETWORK_INTERFACE'|'VPC_ENDPOINT'|'VPC_PEERING_CONNECTION'|'EGRESS_ONLY_INTERNET_GATEWAY'|'TRANSIT_GATEWAY', 'Destination': 'string', 'Target': 'string' }, ], 'InternetGatewayId': 'string', 'CurrentInternetGatewayRouteTable': 'string', 'InternetGatewayRoutes': [ { 'DestinationType': 'IPV4'|'IPV6'|'PREFIX_LIST', 'TargetType': 'GATEWAY'|'CARRIER_GATEWAY'|'INSTANCE'|'LOCAL_GATEWAY'|'NAT_GATEWAY'|'NETWORK_INTERFACE'|'VPC_ENDPOINT'|'VPC_PEERING_CONNECTION'|'EGRESS_ONLY_INTERNET_GATEWAY'|'TRANSIT_GATEWAY', 'Destination': 'string', 'Target': 'string' }, ] }, 'ThirdPartyFirewallMissingFirewallViolation': { 'ViolationTarget': 'string', 'VPC': 'string', 'AvailabilityZone': 'string', 'TargetViolationReason': 'string' }, 'ThirdPartyFirewallMissingSubnetViolation': { 'ViolationTarget': 'string', 'VPC': 'string', 'AvailabilityZone': 'string', 'TargetViolationReason': 'string' }, 'ThirdPartyFirewallMissingExpectedRouteTableViolation': { 'ViolationTarget': 'string', 'VPC': 'string', 'AvailabilityZone': 'string', 'CurrentRouteTable': 'string', 'ExpectedRouteTable': 'string' }, 'FirewallSubnetMissingVPCEndpointViolation': { 'FirewallSubnetId': 'string', 'VpcId': 'string', 'SubnetAvailabilityZone': 'string', 'SubnetAvailabilityZoneId': 'string' }, 'InvalidNetworkAclEntriesViolation': { 'Vpc': 'string', 'Subnet': 'string', 'SubnetAvailabilityZone': 'string', 'CurrentAssociatedNetworkAcl': 'string', 'EntryViolations': [ { 'ExpectedEntry': { 'EntryDetail': { 'IcmpTypeCode': { 'Code': 123, 'Type': 123 }, 'Protocol': 'string', 'PortRange': { 'From': 123, 'To': 123 }, 'CidrBlock': 'string', 'Ipv6CidrBlock': 'string', 'RuleAction': 'allow'|'deny', 'Egress': True|False }, 'EntryRuleNumber': 123, 'EntryType': 'FMS_MANAGED_FIRST_ENTRY'|'FMS_MANAGED_LAST_ENTRY'|'CUSTOM_ENTRY' }, 'ExpectedEvaluationOrder': 'string', 'ActualEvaluationOrder': 'string', 'EntryAtExpectedEvaluationOrder': { 'EntryDetail': { 'IcmpTypeCode': { 'Code': 123, 'Type': 123 }, 'Protocol': 'string', 'PortRange': { 'From': 123, 'To': 123 }, 'CidrBlock': 'string', 'Ipv6CidrBlock': 'string', 'RuleAction': 'allow'|'deny', 'Egress': True|False }, 'EntryRuleNumber': 123, 'EntryType': 'FMS_MANAGED_FIRST_ENTRY'|'FMS_MANAGED_LAST_ENTRY'|'CUSTOM_ENTRY' }, 'EntriesWithConflicts': [ { 'EntryDetail': { 'IcmpTypeCode': { 'Code': 123, 'Type': 123 }, 'Protocol': 'string', 'PortRange': { 'From': 123, 'To': 123 }, 'CidrBlock': 'string', 'Ipv6CidrBlock': 'string', 'RuleAction': 'allow'|'deny', 'Egress': True|False }, 'EntryRuleNumber': 123, 'EntryType': 'FMS_MANAGED_FIRST_ENTRY'|'FMS_MANAGED_LAST_ENTRY'|'CUSTOM_ENTRY' }, ], 'EntryViolationReasons': [ 'MISSING_EXPECTED_ENTRY'|'INCORRECT_ENTRY_ORDER'|'ENTRY_CONFLICT', ] }, ] }, 'PossibleRemediationActions': { 'Description': 'string', 'Actions': [ { 'Description': 'string', 'OrderedRemediationActions': [ { 'RemediationAction': { 'Description': 'string', 'EC2CreateRouteAction': { 'Description': 'string', 'DestinationCidrBlock': 'string', 'DestinationPrefixListId': 'string', 'DestinationIpv6CidrBlock': 'string', 'VpcEndpointId': { 'ResourceId': 'string', 'Description': 'string' }, 'GatewayId': { 'ResourceId': 'string', 'Description': 'string' }, 'RouteTableId': { 'ResourceId': 'string', 'Description': 'string' } }, 'EC2ReplaceRouteAction': { 'Description': 'string', 'DestinationCidrBlock': 'string', 'DestinationPrefixListId': 'string', 'DestinationIpv6CidrBlock': 'string', 'GatewayId': { 'ResourceId': 'string', 'Description': 'string' }, 'RouteTableId': { 'ResourceId': 'string', 'Description': 'string' } }, 'EC2DeleteRouteAction': { 'Description': 'string', 'DestinationCidrBlock': 'string', 'DestinationPrefixListId': 'string', 'DestinationIpv6CidrBlock': 'string', 'RouteTableId': { 'ResourceId': 'string', 'Description': 'string' } }, 'EC2CopyRouteTableAction': { 'Description': 'string', 'VpcId': { 'ResourceId': 'string', 'Description': 'string' }, 'RouteTableId': { 'ResourceId': 'string', 'Description': 'string' } }, 'EC2ReplaceRouteTableAssociationAction': { 'Description': 'string', 'AssociationId': { 'ResourceId': 'string', 'Description': 'string' }, 'RouteTableId': { 'ResourceId': 'string', 'Description': 'string' } }, 'EC2AssociateRouteTableAction': { 'Description': 'string', 'RouteTableId': { 'ResourceId': 'string', 'Description': 'string' }, 'SubnetId': { 'ResourceId': 'string', 'Description': 'string' }, 'GatewayId': { 'ResourceId': 'string', 'Description': 'string' } }, 'EC2CreateRouteTableAction': { 'Description': 'string', 'VpcId': { 'ResourceId': 'string', 'Description': 'string' } }, 'FMSPolicyUpdateFirewallCreationConfigAction': { 'Description': 'string', 'FirewallCreationConfig': 'string' }, 'CreateNetworkAclAction': { 'Description': 'string', 'Vpc': { 'ResourceId': 'string', 'Description': 'string' }, 'FMSCanRemediate': True|False }, 'ReplaceNetworkAclAssociationAction': { 'Description': 'string', 'AssociationId': { 'ResourceId': 'string', 'Description': 'string' }, 'NetworkAclId': { 'ResourceId': 'string', 'Description': 'string' }, 'FMSCanRemediate': True|False }, 'CreateNetworkAclEntriesAction': { 'Description': 'string', 'NetworkAclId': { 'ResourceId': 'string', 'Description': 'string' }, 'NetworkAclEntriesToBeCreated': [ { 'EntryDetail': { 'IcmpTypeCode': { 'Code': 123, 'Type': 123 }, 'Protocol': 'string', 'PortRange': { 'From': 123, 'To': 123 }, 'CidrBlock': 'string', 'Ipv6CidrBlock': 'string', 'RuleAction': 'allow'|'deny', 'Egress': True|False }, 'EntryRuleNumber': 123, 'EntryType': 'FMS_MANAGED_FIRST_ENTRY'|'FMS_MANAGED_LAST_ENTRY'|'CUSTOM_ENTRY' }, ], 'FMSCanRemediate': True|False }, 'DeleteNetworkAclEntriesAction': { 'Description': 'string', 'NetworkAclId': { 'ResourceId': 'string', 'Description': 'string' }, 'NetworkAclEntriesToBeDeleted': [ { 'EntryDetail': { 'IcmpTypeCode': { 'Code': 123, 'Type': 123 }, 'Protocol': 'string', 'PortRange': { 'From': 123, 'To': 123 }, 'CidrBlock': 'string', 'Ipv6CidrBlock': 'string', 'RuleAction': 'allow'|'deny', 'Egress': True|False }, 'EntryRuleNumber': 123, 'EntryType': 'FMS_MANAGED_FIRST_ENTRY'|'FMS_MANAGED_LAST_ENTRY'|'CUSTOM_ENTRY' }, ], 'FMSCanRemediate': True|False } }, 'Order': 123 }, ], 'IsDefaultAction': True|False }, ] }, 'WebACLHasIncompatibleConfigurationViolation': { 'WebACLArn': 'string', 'Description': 'string' }, 'WebACLHasOutOfScopeResourcesViolation': { 'WebACLArn': 'string', 'OutOfScopeResourceList': [ 'string', ] } }, ], 'ResourceTags': [ { 'Key': 'string', 'Value': 'string' }, ], 'ResourceDescription': 'string' } } **Response Structure** * *(dict) --* * **ViolationDetail** *(dict) --* Violation detail for a resource. * **PolicyId** *(string) --* The ID of the Firewall Manager policy that the violation details were requested for. * **MemberAccount** *(string) --* The Amazon Web Services account that the violation details were requested for. * **ResourceId** *(string) --* The resource ID that the violation details were requested for. * **ResourceType** *(string) --* The resource type that the violation details were requested for. * **ResourceViolations** *(list) --* List of violations for the requested resource. * *(dict) --* Violation detail based on resource type. * **AwsVPCSecurityGroupViolation** *(dict) --* Violation detail for security groups. * **ViolationTarget** *(string) --* The security group rule that is being evaluated. * **ViolationTargetDescription** *(string) --* A description of the security group that violates the policy. * **PartialMatches** *(list) --* List of rules specified in the security group of the Firewall Manager policy that partially match the "ViolationTarget" rule. * *(dict) --* The reference rule that partially matches the "ViolationTarget" rule and violation reason. * **Reference** *(string) --* The reference rule from the primary security group of the Firewall Manager policy. * **TargetViolationReasons** *(list) --* The violation reason. * *(string) --* * **PossibleSecurityGroupRemediationActions** *(list) --* Remediation options for the rule specified in the "ViolationTarget". * *(dict) --* Remediation option for the rule specified in the "ViolationTarget". * **RemediationActionType** *(string) --* The remediation action that will be performed. * **Description** *(string) --* Brief description of the action that will be performed. * **RemediationResult** *(dict) --* The final state of the rule specified in the "ViolationTarget" after it is remediated. * **IPV4Range** *(string) --* The IPv4 ranges for the security group rule. * **IPV6Range** *(string) --* The IPv6 ranges for the security group rule. * **PrefixListId** *(string) --* The ID of the prefix list for the security group rule. * **Protocol** *(string) --* The IP protocol name ( "tcp", "udp", "icmp", "icmpv6") or number. * **FromPort** *(integer) --* The start of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of "-1" indicates all ICMP/ICMPv6 types. * **ToPort** *(integer) --* The end of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of "-1" indicates all ICMP/ICMPv6 codes. * **IsDefaultAction** *(boolean) --* Indicates if the current action is the default action. * **AwsEc2NetworkInterfaceViolation** *(dict) --* Violation detail for a network interface. * **ViolationTarget** *(string) --* The resource ID of the network interface. * **ViolatingSecurityGroups** *(list) --* List of security groups that violate the rules specified in the primary security group of the Firewall Manager policy. * *(string) --* * **AwsEc2InstanceViolation** *(dict) --* Violation detail for an EC2 instance. * **ViolationTarget** *(string) --* The resource ID of the EC2 instance. * **AwsEc2NetworkInterfaceViolations** *(list) --* Violation detail for network interfaces associated with the EC2 instance. * *(dict) --* Violation detail for network interfaces associated with an EC2 instance. * **ViolationTarget** *(string) --* The resource ID of the network interface. * **ViolatingSecurityGroups** *(list) --* List of security groups that violate the rules specified in the primary security group of the Firewall Manager policy. * *(string) --* * **NetworkFirewallMissingFirewallViolation** *(dict) --* Violation detail for an Network Firewall policy that indicates that a subnet has no Firewall Manager managed firewall in its VPC. * **ViolationTarget** *(string) --* The ID of the Network Firewall or VPC resource that's in violation. * **VPC** *(string) --* The resource ID of the VPC associated with a violating subnet. * **AvailabilityZone** *(string) --* The Availability Zone of a violating subnet. * **TargetViolationReason** *(string) --* The reason the resource has this violation, if one is available. * **NetworkFirewallMissingSubnetViolation** *(dict) --* Violation detail for an Network Firewall policy that indicates that an Availability Zone is missing the expected Firewall Manager managed subnet. * **ViolationTarget** *(string) --* The ID of the Network Firewall or VPC resource that's in violation. * **VPC** *(string) --* The resource ID of the VPC associated with a violating subnet. * **AvailabilityZone** *(string) --* The Availability Zone of a violating subnet. * **TargetViolationReason** *(string) --* The reason the resource has this violation, if one is available. * **NetworkFirewallMissingExpectedRTViolation** *(dict) --* Violation detail for an Network Firewall policy that indicates that a subnet is not associated with the expected Firewall Manager managed route table. * **ViolationTarget** *(string) --* The ID of the Network Firewall or VPC resource that's in violation. * **VPC** *(string) --* The resource ID of the VPC associated with a violating subnet. * **AvailabilityZone** *(string) --* The Availability Zone of a violating subnet. * **CurrentRouteTable** *(string) --* The resource ID of the current route table that's associated with the subnet, if one is available. * **ExpectedRouteTable** *(string) --* The resource ID of the route table that should be associated with the subnet. * **NetworkFirewallPolicyModifiedViolation** *(dict) --* Violation detail for an Network Firewall policy that indicates that a firewall policy in an individual account has been modified in a way that makes it noncompliant. For example, the individual account owner might have deleted a rule group, changed the priority of a stateless rule group, or changed a policy default action. * **ViolationTarget** *(string) --* The ID of the Network Firewall or VPC resource that's in violation. * **CurrentPolicyDescription** *(dict) --* The policy that's currently in use in the individual account. * **StatelessRuleGroups** *(list) --* The stateless rule groups that are used in the Network Firewall firewall policy. * *(dict) --* Network Firewall stateless rule group, used in a NetworkFirewallPolicyDescription. * **RuleGroupName** *(string) --* The name of the rule group. * **ResourceId** *(string) --* The resource ID of the rule group. * **Priority** *(integer) --* The priority of the rule group. Network Firewall evaluates the stateless rule groups in a firewall policy starting from the lowest priority setting. * **StatelessDefaultActions** *(list) --* The actions to take on packets that don't match any of the stateless rule groups. * *(string) --* * **StatelessFragmentDefaultActions** *(list) --* The actions to take on packet fragments that don't match any of the stateless rule groups. * *(string) --* * **StatelessCustomActions** *(list) --* Names of custom actions that are available for use in the stateless default actions settings. * *(string) --* * **StatefulRuleGroups** *(list) --* The stateful rule groups that are used in the Network Firewall firewall policy. * *(dict) --* Network Firewall stateful rule group, used in a NetworkFirewallPolicyDescription. * **RuleGroupName** *(string) --* The name of the rule group. * **ResourceId** *(string) --* The resource ID of the rule group. * **Priority** *(integer) --* An integer setting that indicates the order in which to run the stateful rule groups in a single Network Firewall firewall policy. This setting only applies to firewall policies that specify the "STRICT_ORDER" rule order in the stateful engine options settings. Network Firewall evalutes each stateful rule group against a packet starting with the group that has the lowest priority setting. You must ensure that the priority settings are unique within each policy. For information about You can change the priority settings of your rule groups at any time. To make it easier to insert rule groups later, number them so there's a wide range in between, for example use 100, 200, and so on. * **Override** *(dict) --* The action that allows the policy owner to override the behavior of the rule group within a policy. * **Action** *(string) --* The action that changes the rule group from "DROP" to "ALERT". This only applies to managed rule groups. * **StatefulDefaultActions** *(list) --* The default actions to take on a packet that doesn't match any stateful rules. The stateful default action is optional, and is only valid when using the strict rule order. Valid values of the stateful default action: * aws:drop_strict * aws:drop_established * aws:alert_strict * aws:alert_established * *(string) --* * **StatefulEngineOptions** *(dict) --* Additional options governing how Network Firewall handles stateful rules. The stateful rule groups that you use in your policy must have stateful rule options settings that are compatible with these settings. * **RuleOrder** *(string) --* Indicates how to manage the order of stateful rule evaluation for the policy. Stateful rules are provided to the rule engine as Suricata compatible strings, and Suricata evaluates them based on certain settings. For more information, see Evaluation order for stateful rules in the *Network Firewall Developer Guide*. Default: "DEFAULT_ACTION_ORDER" * **StreamExceptionPolicy** *(string) --* Indicates how Network Firewall should handle traffic when a network connection breaks midstream. * "DROP" - Fail closed and drop all subsequent traffic going to the firewall. * "CONTINUE" - Continue to apply rules to subsequent traffic without context from traffic before the break. This impacts the behavior of rules that depend on context. For example, with a stateful rule that drops HTTP traffic, Network Firewall won't match subsequent traffic because the it won't have the context from session initialization, which defines the application layer protocol as HTTP. However, a TCP-layer rule using a "flow:stateless" rule would still match, and so would the "aws:drop_strict" default action. * "REJECT" - Fail closed and drop all subsequent traffic going to the firewall. With this option, Network Firewall also sends a TCP reject packet back to the client so the client can immediately establish a new session. With the new session, Network Firewall will have context and will apply rules appropriately. For applications that are reliant on long- lived TCP connections that trigger Gateway Load Balancer idle timeouts, this is the recommended setting. * "FMS_IGNORE" - Firewall Manager doesn't monitor or modify the Network Firewall stream exception policy settings. For more information, see Stream exception policy in your firewall policy in the *Network Firewall Developer Guide*. Default: "FMS_IGNORE" * **ExpectedPolicyDescription** *(dict) --* The policy that should be in use in the individual account in order to be compliant. * **StatelessRuleGroups** *(list) --* The stateless rule groups that are used in the Network Firewall firewall policy. * *(dict) --* Network Firewall stateless rule group, used in a NetworkFirewallPolicyDescription. * **RuleGroupName** *(string) --* The name of the rule group. * **ResourceId** *(string) --* The resource ID of the rule group. * **Priority** *(integer) --* The priority of the rule group. Network Firewall evaluates the stateless rule groups in a firewall policy starting from the lowest priority setting. * **StatelessDefaultActions** *(list) --* The actions to take on packets that don't match any of the stateless rule groups. * *(string) --* * **StatelessFragmentDefaultActions** *(list) --* The actions to take on packet fragments that don't match any of the stateless rule groups. * *(string) --* * **StatelessCustomActions** *(list) --* Names of custom actions that are available for use in the stateless default actions settings. * *(string) --* * **StatefulRuleGroups** *(list) --* The stateful rule groups that are used in the Network Firewall firewall policy. * *(dict) --* Network Firewall stateful rule group, used in a NetworkFirewallPolicyDescription. * **RuleGroupName** *(string) --* The name of the rule group. * **ResourceId** *(string) --* The resource ID of the rule group. * **Priority** *(integer) --* An integer setting that indicates the order in which to run the stateful rule groups in a single Network Firewall firewall policy. This setting only applies to firewall policies that specify the "STRICT_ORDER" rule order in the stateful engine options settings. Network Firewall evalutes each stateful rule group against a packet starting with the group that has the lowest priority setting. You must ensure that the priority settings are unique within each policy. For information about You can change the priority settings of your rule groups at any time. To make it easier to insert rule groups later, number them so there's a wide range in between, for example use 100, 200, and so on. * **Override** *(dict) --* The action that allows the policy owner to override the behavior of the rule group within a policy. * **Action** *(string) --* The action that changes the rule group from "DROP" to "ALERT". This only applies to managed rule groups. * **StatefulDefaultActions** *(list) --* The default actions to take on a packet that doesn't match any stateful rules. The stateful default action is optional, and is only valid when using the strict rule order. Valid values of the stateful default action: * aws:drop_strict * aws:drop_established * aws:alert_strict * aws:alert_established * *(string) --* * **StatefulEngineOptions** *(dict) --* Additional options governing how Network Firewall handles stateful rules. The stateful rule groups that you use in your policy must have stateful rule options settings that are compatible with these settings. * **RuleOrder** *(string) --* Indicates how to manage the order of stateful rule evaluation for the policy. Stateful rules are provided to the rule engine as Suricata compatible strings, and Suricata evaluates them based on certain settings. For more information, see Evaluation order for stateful rules in the *Network Firewall Developer Guide*. Default: "DEFAULT_ACTION_ORDER" * **StreamExceptionPolicy** *(string) --* Indicates how Network Firewall should handle traffic when a network connection breaks midstream. * "DROP" - Fail closed and drop all subsequent traffic going to the firewall. * "CONTINUE" - Continue to apply rules to subsequent traffic without context from traffic before the break. This impacts the behavior of rules that depend on context. For example, with a stateful rule that drops HTTP traffic, Network Firewall won't match subsequent traffic because the it won't have the context from session initialization, which defines the application layer protocol as HTTP. However, a TCP-layer rule using a "flow:stateless" rule would still match, and so would the "aws:drop_strict" default action. * "REJECT" - Fail closed and drop all subsequent traffic going to the firewall. With this option, Network Firewall also sends a TCP reject packet back to the client so the client can immediately establish a new session. With the new session, Network Firewall will have context and will apply rules appropriately. For applications that are reliant on long- lived TCP connections that trigger Gateway Load Balancer idle timeouts, this is the recommended setting. * "FMS_IGNORE" - Firewall Manager doesn't monitor or modify the Network Firewall stream exception policy settings. For more information, see Stream exception policy in your firewall policy in the *Network Firewall Developer Guide*. Default: "FMS_IGNORE" * **NetworkFirewallInternetTrafficNotInspectedViolation ** *(dict) --* Violation detail for the subnet for which internet traffic hasn't been inspected. * **SubnetId** *(string) --* The subnet ID. * **SubnetAvailabilityZone** *(string) --* The subnet Availability Zone. * **RouteTableId** *(string) --* Information about the route table ID. * **ViolatingRoutes** *(list) --* The route or routes that are in violation. * *(dict) --* Describes a route in a route table. * **DestinationType** *(string) --* The type of destination for the route. * **TargetType** *(string) --* The type of target for the route. * **Destination** *(string) --* The destination of the route. * **Target** *(string) --* The route's target. * **IsRouteTableUsedInDifferentAZ** *(boolean) --* Information about whether the route table is used in another Availability Zone. * **CurrentFirewallSubnetRouteTable** *(string) --* Information about the subnet route table for the current firewall. * **ExpectedFirewallEndpoint** *(string) --* The expected endpoint for the current firewall. * **FirewallSubnetId** *(string) --* The firewall subnet ID. * **ExpectedFirewallSubnetRoutes** *(list) --* The firewall subnet routes that are expected. * *(dict) --* Information about the expected route in the route table. * **IpV4Cidr** *(string) --* Information about the IPv4 CIDR block. * **PrefixListId** *(string) --* Information about the ID of the prefix list for the route. * **IpV6Cidr** *(string) --* Information about the IPv6 CIDR block. * **ContributingSubnets** *(list) --* Information about the contributing subnets. * *(string) --* * **AllowedTargets** *(list) --* Information about the allowed targets. * *(string) --* * **RouteTableId** *(string) --* Information about the route table ID. * **ActualFirewallSubnetRoutes** *(list) --* The actual firewall subnet routes. * *(dict) --* Describes a route in a route table. * **DestinationType** *(string) --* The type of destination for the route. * **TargetType** *(string) --* The type of target for the route. * **Destination** *(string) --* The destination of the route. * **Target** *(string) --* The route's target. * **InternetGatewayId** *(string) --* The internet gateway ID. * **CurrentInternetGatewayRouteTable** *(string) --* The current route table for the internet gateway. * **ExpectedInternetGatewayRoutes** *(list) --* The internet gateway routes that are expected. * *(dict) --* Information about the expected route in the route table. * **IpV4Cidr** *(string) --* Information about the IPv4 CIDR block. * **PrefixListId** *(string) --* Information about the ID of the prefix list for the route. * **IpV6Cidr** *(string) --* Information about the IPv6 CIDR block. * **ContributingSubnets** *(list) --* Information about the contributing subnets. * *(string) --* * **AllowedTargets** *(list) --* Information about the allowed targets. * *(string) --* * **RouteTableId** *(string) --* Information about the route table ID. * **ActualInternetGatewayRoutes** *(list) --* The actual internet gateway routes. * *(dict) --* Describes a route in a route table. * **DestinationType** *(string) --* The type of destination for the route. * **TargetType** *(string) --* The type of target for the route. * **Destination** *(string) --* The destination of the route. * **Target** *(string) --* The route's target. * **VpcId** *(string) --* Information about the VPC ID. * **NetworkFirewallInvalidRouteConfigurationViolation** *(dict) --* The route configuration is invalid. * **AffectedSubnets** *(list) --* The subnets that are affected. * *(string) --* * **RouteTableId** *(string) --* The route table ID. * **IsRouteTableUsedInDifferentAZ** *(boolean) --* Information about whether the route table is used in another Availability Zone. * **ViolatingRoute** *(dict) --* The route that's in violation. * **DestinationType** *(string) --* The type of destination for the route. * **TargetType** *(string) --* The type of target for the route. * **Destination** *(string) --* The destination of the route. * **Target** *(string) --* The route's target. * **CurrentFirewallSubnetRouteTable** *(string) --* The subnet route table for the current firewall. * **ExpectedFirewallEndpoint** *(string) --* The firewall endpoint that's expected. * **ActualFirewallEndpoint** *(string) --* The actual firewall endpoint. * **ExpectedFirewallSubnetId** *(string) --* The expected subnet ID for the firewall. * **ActualFirewallSubnetId** *(string) --* The actual subnet ID for the firewall. * **ExpectedFirewallSubnetRoutes** *(list) --* The firewall subnet routes that are expected. * *(dict) --* Information about the expected route in the route table. * **IpV4Cidr** *(string) --* Information about the IPv4 CIDR block. * **PrefixListId** *(string) --* Information about the ID of the prefix list for the route. * **IpV6Cidr** *(string) --* Information about the IPv6 CIDR block. * **ContributingSubnets** *(list) --* Information about the contributing subnets. * *(string) --* * **AllowedTargets** *(list) --* Information about the allowed targets. * *(string) --* * **RouteTableId** *(string) --* Information about the route table ID. * **ActualFirewallSubnetRoutes** *(list) --* The actual firewall subnet routes that are expected. * *(dict) --* Describes a route in a route table. * **DestinationType** *(string) --* The type of destination for the route. * **TargetType** *(string) --* The type of target for the route. * **Destination** *(string) --* The destination of the route. * **Target** *(string) --* The route's target. * **InternetGatewayId** *(string) --* The internet gateway ID. * **CurrentInternetGatewayRouteTable** *(string) --* The route table for the current internet gateway. * **ExpectedInternetGatewayRoutes** *(list) --* The expected routes for the internet gateway. * *(dict) --* Information about the expected route in the route table. * **IpV4Cidr** *(string) --* Information about the IPv4 CIDR block. * **PrefixListId** *(string) --* Information about the ID of the prefix list for the route. * **IpV6Cidr** *(string) --* Information about the IPv6 CIDR block. * **ContributingSubnets** *(list) --* Information about the contributing subnets. * *(string) --* * **AllowedTargets** *(list) --* Information about the allowed targets. * *(string) --* * **RouteTableId** *(string) --* Information about the route table ID. * **ActualInternetGatewayRoutes** *(list) --* The actual internet gateway routes. * *(dict) --* Describes a route in a route table. * **DestinationType** *(string) --* The type of destination for the route. * **TargetType** *(string) --* The type of target for the route. * **Destination** *(string) --* The destination of the route. * **Target** *(string) --* The route's target. * **VpcId** *(string) --* Information about the VPC ID. * **NetworkFirewallBlackHoleRouteDetectedViolation** *(dict) --* Violation detail for an internet gateway route with an inactive state in the customer subnet route table or Network Firewall subnet route table. * **ViolationTarget** *(string) --* The subnet that has an inactive state. * **RouteTableId** *(string) --* Information about the route table ID. * **VpcId** *(string) --* Information about the VPC ID. * **ViolatingRoutes** *(list) --* Information about the route or routes that are in violation. * *(dict) --* Describes a route in a route table. * **DestinationType** *(string) --* The type of destination for the route. * **TargetType** *(string) --* The type of target for the route. * **Destination** *(string) --* The destination of the route. * **Target** *(string) --* The route's target. * **NetworkFirewallUnexpectedFirewallRoutesViolation** *(dict) --* There's an unexpected firewall route. * **FirewallSubnetId** *(string) --* The subnet ID for the firewall. * **ViolatingRoutes** *(list) --* The routes that are in violation. * *(dict) --* Describes a route in a route table. * **DestinationType** *(string) --* The type of destination for the route. * **TargetType** *(string) --* The type of target for the route. * **Destination** *(string) --* The destination of the route. * **Target** *(string) --* The route's target. * **RouteTableId** *(string) --* The ID of the route table. * **FirewallEndpoint** *(string) --* The endpoint of the firewall. * **VpcId** *(string) --* Information about the VPC ID. * **NetworkFirewallUnexpectedGatewayRoutesViolation** *(dict) --* There's an unexpected gateway route. * **GatewayId** *(string) --* Information about the gateway ID. * **ViolatingRoutes** *(list) --* The routes that are in violation. * *(dict) --* Describes a route in a route table. * **DestinationType** *(string) --* The type of destination for the route. * **TargetType** *(string) --* The type of target for the route. * **Destination** *(string) --* The destination of the route. * **Target** *(string) --* The route's target. * **RouteTableId** *(string) --* Information about the route table. * **VpcId** *(string) --* Information about the VPC ID. * **NetworkFirewallMissingExpectedRoutesViolation** *(dict) --* Expected routes are missing from Network Firewall. * **ViolationTarget** *(string) --* The target of the violation. * **ExpectedRoutes** *(list) --* The expected routes. * *(dict) --* Information about the expected route in the route table. * **IpV4Cidr** *(string) --* Information about the IPv4 CIDR block. * **PrefixListId** *(string) --* Information about the ID of the prefix list for the route. * **IpV6Cidr** *(string) --* Information about the IPv6 CIDR block. * **ContributingSubnets** *(list) --* Information about the contributing subnets. * *(string) --* * **AllowedTargets** *(list) --* Information about the allowed targets. * *(string) --* * **RouteTableId** *(string) --* Information about the route table ID. * **VpcId** *(string) --* Information about the VPC ID. * **DnsRuleGroupPriorityConflictViolation** *(dict) --* Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to associate with a VPC has the same priority as a rule group that's already associated. * **ViolationTarget** *(string) --* Information about the VPC ID. * **ViolationTargetDescription** *(string) --* A description of the violation that specifies the VPC and the rule group that's already associated with it. * **ConflictingPriority** *(integer) --* The priority setting of the two conflicting rule groups. * **ConflictingPolicyId** *(string) --* The ID of the Firewall Manager DNS Firewall policy that was already applied to the VPC. This policy contains the rule group that's already associated with the VPC. * **UnavailablePriorities** *(list) --* The priorities of rule groups that are already associated with the VPC. To retry your operation, choose priority settings that aren't in this list for the rule groups in your new DNS Firewall policy. * *(integer) --* * **DnsDuplicateRuleGroupViolation** *(dict) --* Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to associate with a VPC is already associated with the VPC and can't be associated again. * **ViolationTarget** *(string) --* Information about the VPC ID. * **ViolationTargetDescription** *(string) --* A description of the violation that specifies the rule group and VPC. * **DnsRuleGroupLimitExceededViolation** *(dict) --* Violation detail for a DNS Firewall policy that indicates that the VPC reached the limit for associated DNS Firewall rule groups. Firewall Manager tried to associate another rule group with the VPC and failed. * **ViolationTarget** *(string) --* Information about the VPC ID. * **ViolationTargetDescription** *(string) --* A description of the violation that specifies the rule group and VPC. * **NumberOfRuleGroupsAlreadyAssociated** *(integer) --* The number of rule groups currently associated with the VPC. * **FirewallSubnetIsOutOfScopeViolation** *(dict) --* Contains details about the firewall subnet that violates the policy scope. * **FirewallSubnetId** *(string) --* The ID of the firewall subnet that violates the policy scope. * **VpcId** *(string) --* The VPC ID of the firewall subnet that violates the policy scope. * **SubnetAvailabilityZone** *(string) --* The Availability Zone of the firewall subnet that violates the policy scope. * **SubnetAvailabilityZoneId** *(string) --* The Availability Zone ID of the firewall subnet that violates the policy scope. * **VpcEndpointId** *(string) --* The VPC endpoint ID of the firewall subnet that violates the policy scope. * **RouteHasOutOfScopeEndpointViolation** *(dict) --* Contains details about the route endpoint that violates the policy scope. * **SubnetId** *(string) --* The ID of the subnet associated with the route that violates the policy scope. * **VpcId** *(string) --* The VPC ID of the route that violates the policy scope. * **RouteTableId** *(string) --* The ID of the route table. * **ViolatingRoutes** *(list) --* The list of routes that violate the route table. * *(dict) --* Describes a route in a route table. * **DestinationType** *(string) --* The type of destination for the route. * **TargetType** *(string) --* The type of target for the route. * **Destination** *(string) --* The destination of the route. * **Target** *(string) --* The route's target. * **SubnetAvailabilityZone** *(string) --* The subnet's Availability Zone. * **SubnetAvailabilityZoneId** *(string) --* The ID of the subnet's Availability Zone. * **CurrentFirewallSubnetRouteTable** *(string) --* The route table associated with the current firewall subnet. * **FirewallSubnetId** *(string) --* The ID of the firewall subnet. * **FirewallSubnetRoutes** *(list) --* The list of firewall subnet routes. * *(dict) --* Describes a route in a route table. * **DestinationType** *(string) --* The type of destination for the route. * **TargetType** *(string) --* The type of target for the route. * **Destination** *(string) --* The destination of the route. * **Target** *(string) --* The route's target. * **InternetGatewayId** *(string) --* The ID of the Internet Gateway. * **CurrentInternetGatewayRouteTable** *(string) --* The current route table associated with the Internet Gateway. * **InternetGatewayRoutes** *(list) --* The routes in the route table associated with the Internet Gateway. * *(dict) --* Describes a route in a route table. * **DestinationType** *(string) --* The type of destination for the route. * **TargetType** *(string) --* The type of target for the route. * **Destination** *(string) --* The destination of the route. * **Target** *(string) --* The route's target. * **ThirdPartyFirewallMissingFirewallViolation** *(dict) --* The violation details for a third-party firewall that's been deleted. * **ViolationTarget** *(string) --* The ID of the third-party firewall that's causing the violation. * **VPC** *(string) --* The resource ID of the VPC associated with a third- party firewall. * **AvailabilityZone** *(string) --* The Availability Zone of the third-party firewall that's causing the violation. * **TargetViolationReason** *(string) --* The reason the resource is causing this violation, if a reason is available. * **ThirdPartyFirewallMissingSubnetViolation** *(dict) --* The violation details for a third-party firewall's subnet that's been deleted. * **ViolationTarget** *(string) --* The ID of the third-party firewall or VPC resource that's causing the violation. * **VPC** *(string) --* The resource ID of the VPC associated with a subnet that's causing the violation. * **AvailabilityZone** *(string) --* The Availability Zone of a subnet that's causing the violation. * **TargetViolationReason** *(string) --* The reason the resource is causing the violation, if a reason is available. * **ThirdPartyFirewallMissingExpectedRouteTableViolatio n** *(dict) --* The violation details for a third-party firewall that has the Firewall Manager managed route table that was associated with the third-party firewall has been deleted. * **ViolationTarget** *(string) --* The ID of the third-party firewall or VPC resource that's causing the violation. * **VPC** *(string) --* The resource ID of the VPC associated with a fireawll subnet that's causing the violation. * **AvailabilityZone** *(string) --* The Availability Zone of the firewall subnet that's causing the violation. * **CurrentRouteTable** *(string) --* The resource ID of the current route table that's associated with the subnet, if one is available. * **ExpectedRouteTable** *(string) --* The resource ID of the route table that should be associated with the subnet. * **FirewallSubnetMissingVPCEndpointViolation** *(dict) --* The violation details for a third-party firewall's VPC endpoint subnet that was deleted. * **FirewallSubnetId** *(string) --* The ID of the firewall that this VPC endpoint is associated with. * **VpcId** *(string) --* The resource ID of the VPC associated with the deleted VPC subnet. * **SubnetAvailabilityZone** *(string) --* The name of the Availability Zone of the deleted VPC subnet. * **SubnetAvailabilityZoneId** *(string) --* The ID of the Availability Zone of the deleted VPC subnet. * **InvalidNetworkAclEntriesViolation** *(dict) --* Violation detail for the entries in a network ACL resource. * **Vpc** *(string) --* The VPC where the violation was found. * **Subnet** *(string) --* The subnet that's associated with the network ACL. * **SubnetAvailabilityZone** *(string) --* The Availability Zone where the network ACL is in use. * **CurrentAssociatedNetworkAcl** *(string) --* The network ACL containing the entry violations. * **EntryViolations** *(list) --* Detailed information about the entry violations in the network ACL. * *(dict) --* Detailed information about an entry violation in a network ACL. The violation is against the network ACL specification inside the Firewall Manager network ACL policy. This data object is part of "InvalidNetworkAclEntriesViolation". * **ExpectedEntry** *(dict) --* The Firewall Manager-managed network ACL entry that is involved in the entry violation. * **EntryDetail** *(dict) --* Describes a rule in a network ACL. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the network ACL, Amazon Web Services processes the entries in the network ACL according to the rule numbers, in ascending order. When you manage an individual network ACL, you explicitly specify the rule numbers. When you specify the network ACL rules in a Firewall Manager policy, you provide the rules to run first, in the order that you want them to run, and the rules to run last, in the order that you want them to run. Firewall Manager assigns the rule numbers for you when you save the network ACL policy specification. * **IcmpTypeCode** *(dict) --* ICMP protocol: The ICMP type and code. * **Code** *(integer) --* ICMP code. * **Type** *(integer) --* ICMP type. * **Protocol** *(string) --* The protocol number. A value of "-1" means all protocols. * **PortRange** *(dict) --* TCP or UDP protocols: The range of ports the rule applies to. * **From** *(integer) --* The beginning port number of the range. * **To** *(integer) --* The ending port number of the range. * **CidrBlock** *(string) --* The IPv4 network range to allow or deny, in CIDR notation. * **Ipv6CidrBlock** *(string) --* The IPv6 network range to allow or deny, in CIDR notation. * **RuleAction** *(string) --* Indicates whether to allow or deny the traffic that matches the rule. * **Egress** *(boolean) --* Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). If it's not an egress rule, then it's an ingress, or inbound, rule. * **EntryRuleNumber** *(integer) --* The rule number for the entry. ACL entries are processed in ascending order by rule number. In a Firewall Manager network ACL policy, Firewall Manager assigns rule numbers. * **EntryType** *(string) --* Specifies whether the entry is managed by Firewall Manager or by a user, and, for Firewall Manager-managed entries, specifies whether the entry is among those that run first in the network ACL or those that run last. * **ExpectedEvaluationOrder** *(string) --* The evaluation location within the ordered list of entries where the "ExpectedEntry" should be, according to the network ACL policy specifications. * **ActualEvaluationOrder** *(string) --* The evaluation location within the ordered list of entries where the "ExpectedEntry" is currently located. * **EntryAtExpectedEvaluationOrder** *(dict) --* The entry that's currently in the "ExpectedEvaluationOrder" location, in place of the expected entry. * **EntryDetail** *(dict) --* Describes a rule in a network ACL. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the network ACL, Amazon Web Services processes the entries in the network ACL according to the rule numbers, in ascending order. When you manage an individual network ACL, you explicitly specify the rule numbers. When you specify the network ACL rules in a Firewall Manager policy, you provide the rules to run first, in the order that you want them to run, and the rules to run last, in the order that you want them to run. Firewall Manager assigns the rule numbers for you when you save the network ACL policy specification. * **IcmpTypeCode** *(dict) --* ICMP protocol: The ICMP type and code. * **Code** *(integer) --* ICMP code. * **Type** *(integer) --* ICMP type. * **Protocol** *(string) --* The protocol number. A value of "-1" means all protocols. * **PortRange** *(dict) --* TCP or UDP protocols: The range of ports the rule applies to. * **From** *(integer) --* The beginning port number of the range. * **To** *(integer) --* The ending port number of the range. * **CidrBlock** *(string) --* The IPv4 network range to allow or deny, in CIDR notation. * **Ipv6CidrBlock** *(string) --* The IPv6 network range to allow or deny, in CIDR notation. * **RuleAction** *(string) --* Indicates whether to allow or deny the traffic that matches the rule. * **Egress** *(boolean) --* Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). If it's not an egress rule, then it's an ingress, or inbound, rule. * **EntryRuleNumber** *(integer) --* The rule number for the entry. ACL entries are processed in ascending order by rule number. In a Firewall Manager network ACL policy, Firewall Manager assigns rule numbers. * **EntryType** *(string) --* Specifies whether the entry is managed by Firewall Manager or by a user, and, for Firewall Manager-managed entries, specifies whether the entry is among those that run first in the network ACL or those that run last. * **EntriesWithConflicts** *(list) --* The list of entries that are in conflict with "ExpectedEntry". * *(dict) --* Describes a single rule in a network ACL. * **EntryDetail** *(dict) --* Describes a rule in a network ACL. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the network ACL, Amazon Web Services processes the entries in the network ACL according to the rule numbers, in ascending order. When you manage an individual network ACL, you explicitly specify the rule numbers. When you specify the network ACL rules in a Firewall Manager policy, you provide the rules to run first, in the order that you want them to run, and the rules to run last, in the order that you want them to run. Firewall Manager assigns the rule numbers for you when you save the network ACL policy specification. * **IcmpTypeCode** *(dict) --* ICMP protocol: The ICMP type and code. * **Code** *(integer) --* ICMP code. * **Type** *(integer) --* ICMP type. * **Protocol** *(string) --* The protocol number. A value of "-1" means all protocols. * **PortRange** *(dict) --* TCP or UDP protocols: The range of ports the rule applies to. * **From** *(integer) --* The beginning port number of the range. * **To** *(integer) --* The ending port number of the range. * **CidrBlock** *(string) --* The IPv4 network range to allow or deny, in CIDR notation. * **Ipv6CidrBlock** *(string) --* The IPv6 network range to allow or deny, in CIDR notation. * **RuleAction** *(string) --* Indicates whether to allow or deny the traffic that matches the rule. * **Egress** *(boolean) --* Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). If it's not an egress rule, then it's an ingress, or inbound, rule. * **EntryRuleNumber** *(integer) --* The rule number for the entry. ACL entries are processed in ascending order by rule number. In a Firewall Manager network ACL policy, Firewall Manager assigns rule numbers. * **EntryType** *(string) --* Specifies whether the entry is managed by Firewall Manager or by a user, and, for Firewall Manager-managed entries, specifies whether the entry is among those that run first in the network ACL or those that run last. * **EntryViolationReasons** *(list) --* Descriptions of the violations that Firewall Manager found for these entries. * *(string) --* * **PossibleRemediationActions** *(dict) --* A list of possible remediation action lists. Each individual possible remediation action is a list of individual remediation actions. * **Description** *(string) --* A description of the possible remediation actions list. * **Actions** *(list) --* Information about the actions. * *(dict) --* A list of remediation actions. * **Description** *(string) --* A description of the list of remediation actions. * **OrderedRemediationActions** *(list) --* The ordered list of remediation actions. * *(dict) --* An ordered list of actions you can take to remediate a violation. * **RemediationAction** *(dict) --* Information about an action you can take to remediate a violation. * **Description** *(string) --* A description of a remediation action. * **EC2CreateRouteAction** *(dict) --* Information about the CreateRoute action in the Amazon EC2 API. * **Description** *(string) --* A description of CreateRoute action in Amazon EC2. * **DestinationCidrBlock** *(string) --* Information about the IPv4 CIDR address block used for the destination match. * **DestinationPrefixListId** *(string) --* Information about the ID of a prefix list used for the destination match. * **DestinationIpv6CidrBlock** *(string) --* Information about the IPv6 CIDR block destination. * **VpcEndpointId** *(dict) --* Information about the ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints only. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **GatewayId** *(dict) --* Information about the ID of an internet gateway or virtual private gateway attached to your VPC. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **RouteTableId** *(dict) --* Information about the ID of the route table for the route. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **EC2ReplaceRouteAction** *(dict) --* Information about the ReplaceRoute action in the Amazon EC2 API. * **Description** *(string) --* A description of the ReplaceRoute action in Amazon EC2. * **DestinationCidrBlock** *(string) --* Information about the IPv4 CIDR address block used for the destination match. The value that you provide must match the CIDR of an existing route in the table. * **DestinationPrefixListId** *(string) --* Information about the ID of the prefix list for the route. * **DestinationIpv6CidrBlock** *(string) --* Information about the IPv6 CIDR address block used for the destination match. The value that you provide must match the CIDR of an existing route in the table. * **GatewayId** *(dict) --* Information about the ID of an internet gateway or virtual private gateway. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **RouteTableId** *(dict) --* Information about the ID of the route table. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **EC2DeleteRouteAction** *(dict) --* Information about the DeleteRoute action in the Amazon EC2 API. * **Description** *(string) --* A description of the DeleteRoute action. * **DestinationCidrBlock** *(string) --* Information about the IPv4 CIDR range for the route. The value you specify must match the CIDR for the route exactly. * **DestinationPrefixListId** *(string) --* Information about the ID of the prefix list for the route. * **DestinationIpv6CidrBlock** *(string) --* Information about the IPv6 CIDR range for the route. The value you specify must match the CIDR for the route exactly. * **RouteTableId** *(dict) --* Information about the ID of the route table. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **EC2CopyRouteTableAction** *(dict) --* Information about the CopyRouteTable action in the Amazon EC2 API. * **Description** *(string) --* A description of the copied EC2 route table that is associated with the remediation action. * **VpcId** *(dict) --* The VPC ID of the copied EC2 route table that is associated with the remediation action. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **RouteTableId** *(dict) --* The ID of the copied EC2 route table that is associated with the remediation action. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **EC2ReplaceRouteTableAssociationAction** *(dict) --* Information about the ReplaceRouteTableAssociation action in the Amazon EC2 API. * **Description** *(string) --* A description of the ReplaceRouteTableAssociation action in Amazon EC2. * **AssociationId** *(dict) --* Information about the association ID. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **RouteTableId** *(dict) --* Information about the ID of the new route table to associate with the subnet. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **EC2AssociateRouteTableAction** *(dict) --* Information about the AssociateRouteTable action in the Amazon EC2 API. * **Description** *(string) --* A description of the EC2 route table that is associated with the remediation action. * **RouteTableId** *(dict) --* The ID of the EC2 route table that is associated with the remediation action. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **SubnetId** *(dict) --* The ID of the subnet for the EC2 route table that is associated with the remediation action. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **GatewayId** *(dict) --* The ID of the gateway to be used with the EC2 route table that is associated with the remediation action. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **EC2CreateRouteTableAction** *(dict) --* Information about the CreateRouteTable action in the Amazon EC2 API. * **Description** *(string) --* A description of the CreateRouteTable action. * **VpcId** *(dict) --* Information about the ID of a VPC. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **FMSPolicyUpdateFirewallCreationConfigAc tion** *(dict) --* The remedial action to take when updating a firewall configuration. * **Description** *(string) --* Describes the remedial action. * **FirewallCreationConfig** *(string) --* A "FirewallCreationConfig" that you can copy into your current policy's SecurityServiceData in order to remedy scope violations. * **CreateNetworkAclAction** *(dict) --* Information about the "CreateNetworkAcl" action in Amazon EC2. * **Description** *(string) --* Brief description of this remediation action. * **Vpc** *(dict) --* The VPC that's associated with the remediation action. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **FMSCanRemediate** *(boolean) --* Indicates whether it is possible for Firewall Manager to perform this remediation action. A false value indicates that auto remediation is disabled or Firewall Manager is unable to perform the action due to a conflict of some kind. * **ReplaceNetworkAclAssociationAction** *(dict) --* Information about the "ReplaceNetworkAclAssociation" action in Amazon EC2. * **Description** *(string) --* Brief description of this remediation action. * **AssociationId** *(dict) --* Describes a remediation action target. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **NetworkAclId** *(dict) --* The network ACL that's associated with the remediation action. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **FMSCanRemediate** *(boolean) --* Indicates whether it is possible for Firewall Manager to perform this remediation action. A false value indicates that auto remediation is disabled or Firewall Manager is unable to perform the action due to a conflict of some kind. * **CreateNetworkAclEntriesAction** *(dict) --* Information about the "CreateNetworkAclEntries" action in Amazon EC2. * **Description** *(string) --* Brief description of this remediation action. * **NetworkAclId** *(dict) --* The network ACL that's associated with the remediation action. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **NetworkAclEntriesToBeCreated** *(list) --* Lists the entries that the remediation action would create. * *(dict) --* Describes a single rule in a network ACL. * **EntryDetail** *(dict) --* Describes a rule in a network ACL. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the network ACL, Amazon Web Services processes the entries in the network ACL according to the rule numbers, in ascending order. When you manage an individual network ACL, you explicitly specify the rule numbers. When you specify the network ACL rules in a Firewall Manager policy, you provide the rules to run first, in the order that you want them to run, and the rules to run last, in the order that you want them to run. Firewall Manager assigns the rule numbers for you when you save the network ACL policy specification. * **IcmpTypeCode** *(dict) --* ICMP protocol: The ICMP type and code. * **Code** *(integer) --* ICMP code. * **Type** *(integer) --* ICMP type. * **Protocol** *(string) --* The protocol number. A value of "-1" means all protocols. * **PortRange** *(dict) --* TCP or UDP protocols: The range of ports the rule applies to. * **From** *(integer) --* The beginning port number of the range. * **To** *(integer) --* The ending port number of the range. * **CidrBlock** *(string) --* The IPv4 network range to allow or deny, in CIDR notation. * **Ipv6CidrBlock** *(string) --* The IPv6 network range to allow or deny, in CIDR notation. * **RuleAction** *(string) --* Indicates whether to allow or deny the traffic that matches the rule. * **Egress** *(boolean) --* Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). If it's not an egress rule, then it's an ingress, or inbound, rule. * **EntryRuleNumber** *(integer) --* The rule number for the entry. ACL entries are processed in ascending order by rule number. In a Firewall Manager network ACL policy, Firewall Manager assigns rule numbers. * **EntryType** *(string) --* Specifies whether the entry is managed by Firewall Manager or by a user, and, for Firewall Manager- managed entries, specifies whether the entry is among those that run first in the network ACL or those that run last. * **FMSCanRemediate** *(boolean) --* Indicates whether it is possible for Firewall Manager to perform this remediation action. A false value indicates that auto remediation is disabled or Firewall Manager is unable to perform the action due to a conflict of some kind. * **DeleteNetworkAclEntriesAction** *(dict) --* Information about the "DeleteNetworkAclEntries" action in Amazon EC2. * **Description** *(string) --* Brief description of this remediation action. * **NetworkAclId** *(dict) --* The network ACL that's associated with the remediation action. * **ResourceId** *(string) --* The ID of the remediation target. * **Description** *(string) --* A description of the remediation action target. * **NetworkAclEntriesToBeDeleted** *(list) --* Lists the entries that the remediation action would delete. * *(dict) --* Describes a single rule in a network ACL. * **EntryDetail** *(dict) --* Describes a rule in a network ACL. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the network ACL, Amazon Web Services processes the entries in the network ACL according to the rule numbers, in ascending order. When you manage an individual network ACL, you explicitly specify the rule numbers. When you specify the network ACL rules in a Firewall Manager policy, you provide the rules to run first, in the order that you want them to run, and the rules to run last, in the order that you want them to run. Firewall Manager assigns the rule numbers for you when you save the network ACL policy specification. * **IcmpTypeCode** *(dict) --* ICMP protocol: The ICMP type and code. * **Code** *(integer) --* ICMP code. * **Type** *(integer) --* ICMP type. * **Protocol** *(string) --* The protocol number. A value of "-1" means all protocols. * **PortRange** *(dict) --* TCP or UDP protocols: The range of ports the rule applies to. * **From** *(integer) --* The beginning port number of the range. * **To** *(integer) --* The ending port number of the range. * **CidrBlock** *(string) --* The IPv4 network range to allow or deny, in CIDR notation. * **Ipv6CidrBlock** *(string) --* The IPv6 network range to allow or deny, in CIDR notation. * **RuleAction** *(string) --* Indicates whether to allow or deny the traffic that matches the rule. * **Egress** *(boolean) --* Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). If it's not an egress rule, then it's an ingress, or inbound, rule. * **EntryRuleNumber** *(integer) --* The rule number for the entry. ACL entries are processed in ascending order by rule number. In a Firewall Manager network ACL policy, Firewall Manager assigns rule numbers. * **EntryType** *(string) --* Specifies whether the entry is managed by Firewall Manager or by a user, and, for Firewall Manager- managed entries, specifies whether the entry is among those that run first in the network ACL or those that run last. * **FMSCanRemediate** *(boolean) --* Indicates whether it is possible for Firewall Manager to perform this remediation action. A false value indicates that auto remediation is disabled or Firewall Manager is unable to perform the action due to a conflict of some kind. * **Order** *(integer) --* The order of the remediation actions in the list. * **IsDefaultAction** *(boolean) --* Information about whether an action is taken by default. * **WebACLHasIncompatibleConfigurationViolation** *(dict) --* The violation details for a web ACL whose configuration is incompatible with the Firewall Manager policy. * **WebACLArn** *(string) --* The Amazon Resource Name (ARN) of the web ACL. * **Description** *(string) --* Information about the problems that Firewall Manager encountered with the web ACL configuration. * **WebACLHasOutOfScopeResourcesViolation** *(dict) --* The violation details for a web ACL that's associated with at least one resource that's out of scope of the Firewall Manager policy. * **WebACLArn** *(string) --* The Amazon Resource Name (ARN) of the web ACL. * **OutOfScopeResourceList** *(list) --* An array of Amazon Resource Name (ARN) for the resources that are out of scope of the policy and are associated with the web ACL. * *(string) --* * **ResourceTags** *(list) --* The "ResourceTag" objects associated with the resource. * *(dict) --* A collection of key:value pairs associated with an Amazon Web Services resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each Amazon Web Services resource. * **Key** *(string) --* Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive. * **Value** *(string) --* Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive. * **ResourceDescription** *(string) --* Brief description for the requested resource. **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / list_resource_sets list_resource_sets ****************** FMS.Client.list_resource_sets(**kwargs) Returns an array of "ResourceSetSummary" objects. See also: AWS API Documentation **Request Syntax** response = client.list_resource_sets( NextToken='string', MaxResults=123 ) Parameters: * **NextToken** (*string*) -- When you request a list of objects with a "MaxResults" setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a "NextToken" value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. * **MaxResults** (*integer*) -- The maximum number of objects that you want Firewall Manager to return for this request. If more objects are available, in the response, Firewall Manager provides a "NextToken" value that you can use in a subsequent call to get the next batch of objects. Return type: dict Returns: **Response Syntax** { 'ResourceSets': [ { 'Id': 'string', 'Name': 'string', 'Description': 'string', 'LastUpdateTime': datetime(2015, 1, 1), 'ResourceSetStatus': 'ACTIVE'|'OUT_OF_ADMIN_SCOPE' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **ResourceSets** *(list) --* An array of "ResourceSetSummary" objects. * *(dict) --* Summarizes the resource sets used in a policy. * **Id** *(string) --* A unique identifier for the resource set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete. * **Name** *(string) --* The descriptive name of the resource set. You can't change the name of a resource set after you create it. * **Description** *(string) --* A description of the resource set. * **LastUpdateTime** *(datetime) --* The last time that the resource set was changed. * **ResourceSetStatus** *(string) --* Indicates whether the resource set is in or out of an admin's Region scope. * "ACTIVE" - The administrator can manage and delete the resource set. * "OUT_OF_ADMIN_SCOPE" - The administrator can view the resource set, but they can't edit or delete the resource set. Existing protections stay in place. Any new resource that come into scope of the resource set won't be protected. * **NextToken** *(string) --* When you request a list of objects with a "MaxResults" setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a "NextToken" value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / tag_resource tag_resource ************ FMS.Client.tag_resource(**kwargs) Adds one or more tags to an Amazon Web Services resource. See also: AWS API Documentation **Request Syntax** response = client.tag_resource( ResourceArn='string', TagList=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource to return tags for. The Firewall Manager resources that support tagging are policies, applications lists, and protocols lists. * **TagList** (*list*) -- **[REQUIRED]** The tags to add to the resource. * *(dict) --* A collection of key:value pairs associated with an Amazon Web Services resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each Amazon Web Services resource. * **Key** *(string) --* **[REQUIRED]** Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive. * **Value** *(string) --* **[REQUIRED]** Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.LimitExceededException" FMS / Client / put_protocols_list put_protocols_list ****************** FMS.Client.put_protocols_list(**kwargs) Creates an Firewall Manager protocols list. See also: AWS API Documentation **Request Syntax** response = client.put_protocols_list( ProtocolsList={ 'ListId': 'string', 'ListName': 'string', 'ListUpdateToken': 'string', 'CreateTime': datetime(2015, 1, 1), 'LastUpdateTime': datetime(2015, 1, 1), 'ProtocolsList': [ 'string', ], 'PreviousProtocolsList': { 'string': [ 'string', ] } }, TagList=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **ProtocolsList** (*dict*) -- **[REQUIRED]** The details of the Firewall Manager protocols list to be created. * **ListId** *(string) --* The ID of the Firewall Manager protocols list. * **ListName** *(string) --* **[REQUIRED]** The name of the Firewall Manager protocols list. * **ListUpdateToken** *(string) --* A unique identifier for each update to the list. When you update the list, the update token must match the token of the current version of the application list. You can retrieve the update token by getting the list. * **CreateTime** *(datetime) --* The time that the Firewall Manager protocols list was created. * **LastUpdateTime** *(datetime) --* The time that the Firewall Manager protocols list was last updated. * **ProtocolsList** *(list) --* **[REQUIRED]** An array of protocols in the Firewall Manager protocols list. * *(string) --* * **PreviousProtocolsList** *(dict) --* A map of previous version numbers to their corresponding protocol arrays. * *(string) --* * *(list) --* * *(string) --* * **TagList** (*list*) -- The tags associated with the resource. * *(dict) --* A collection of key:value pairs associated with an Amazon Web Services resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each Amazon Web Services resource. * **Key** *(string) --* **[REQUIRED]** Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive. * **Value** *(string) --* **[REQUIRED]** Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive. Return type: dict Returns: **Response Syntax** { 'ProtocolsList': { 'ListId': 'string', 'ListName': 'string', 'ListUpdateToken': 'string', 'CreateTime': datetime(2015, 1, 1), 'LastUpdateTime': datetime(2015, 1, 1), 'ProtocolsList': [ 'string', ], 'PreviousProtocolsList': { 'string': [ 'string', ] } }, 'ProtocolsListArn': 'string' } **Response Structure** * *(dict) --* * **ProtocolsList** *(dict) --* The details of the Firewall Manager protocols list. * **ListId** *(string) --* The ID of the Firewall Manager protocols list. * **ListName** *(string) --* The name of the Firewall Manager protocols list. * **ListUpdateToken** *(string) --* A unique identifier for each update to the list. When you update the list, the update token must match the token of the current version of the application list. You can retrieve the update token by getting the list. * **CreateTime** *(datetime) --* The time that the Firewall Manager protocols list was created. * **LastUpdateTime** *(datetime) --* The time that the Firewall Manager protocols list was last updated. * **ProtocolsList** *(list) --* An array of protocols in the Firewall Manager protocols list. * *(string) --* * **PreviousProtocolsList** *(dict) --* A map of previous version numbers to their corresponding protocol arrays. * *(string) --* * *(list) --* * *(string) --* * **ProtocolsListArn** *(string) --* The Amazon Resource Name (ARN) of the protocols list. **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.LimitExceededException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / get_notification_channel get_notification_channel ************************ FMS.Client.get_notification_channel() Information about the Amazon Simple Notification Service (SNS) topic that is used to record Firewall Manager SNS logs. See also: AWS API Documentation **Request Syntax** response = client.get_notification_channel() Return type: dict Returns: **Response Syntax** { 'SnsTopicArn': 'string', 'SnsRoleName': 'string' } **Response Structure** * *(dict) --* * **SnsTopicArn** *(string) --* The SNS topic that records Firewall Manager activity. * **SnsRoleName** *(string) --* The IAM role that is used by Firewall Manager to record activity to SNS. **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / associate_admin_account associate_admin_account *********************** FMS.Client.associate_admin_account(**kwargs) 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*. See also: AWS API Documentation **Request Syntax** response = client.associate_admin_account( AdminAccount='string' ) Parameters: **AdminAccount** (*string*) -- **[REQUIRED]** The Amazon Web Services account ID to associate with Firewall Manager as the Firewall Manager default administrator account. This account must be a member account of the organization in Organizations whose resources you want to protect. For more information about Organizations, see Managing the Amazon Web Services Accounts in Your Organization. Returns: None **Exceptions** * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InvalidInputException" * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InternalErrorException" * "FMS.Client.exceptions.LimitExceededException" FMS / Client / list_compliance_status list_compliance_status ********************** FMS.Client.list_compliance_status(**kwargs) Returns an array of "PolicyComplianceStatus" objects. Use "PolicyComplianceStatus" to get a summary of which member accounts are protected by the specified policy. See also: AWS API Documentation **Request Syntax** response = client.list_compliance_status( PolicyId='string', NextToken='string', MaxResults=123 ) Parameters: * **PolicyId** (*string*) -- **[REQUIRED]** The ID of the Firewall Manager policy that you want the details for. * **NextToken** (*string*) -- If you specify a value for "MaxResults" and you have more "PolicyComplianceStatus" objects than the number that you specify for "MaxResults", Firewall Manager returns a "NextToken" value in the response that allows you to list another group of "PolicyComplianceStatus" objects. For the second and subsequent "ListComplianceStatus" requests, specify the value of "NextToken" from the previous response to get information about another batch of "PolicyComplianceStatus" objects. * **MaxResults** (*integer*) -- Specifies the number of "PolicyComplianceStatus" objects that you want Firewall Manager to return for this request. If you have more "PolicyComplianceStatus" objects than the number that you specify for "MaxResults", the response includes a "NextToken" value that you can use to get another batch of "PolicyComplianceStatus" objects. Return type: dict Returns: **Response Syntax** { 'PolicyComplianceStatusList': [ { 'PolicyOwner': 'string', 'PolicyId': 'string', 'PolicyName': 'string', 'MemberAccount': 'string', 'EvaluationResults': [ { 'ComplianceStatus': 'COMPLIANT'|'NON_COMPLIANT', 'ViolatorCount': 123, 'EvaluationLimitExceeded': True|False }, ], 'LastUpdated': datetime(2015, 1, 1), 'IssueInfoMap': { 'string': 'string' } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **PolicyComplianceStatusList** *(list) --* An array of "PolicyComplianceStatus" objects. * *(dict) --* Indicates whether the account is compliant with the specified policy. An account is considered noncompliant if it includes resources that are not protected by the policy, for WAF and Shield Advanced policies, or that are noncompliant with the policy, for security group policies. * **PolicyOwner** *(string) --* The Amazon Web Services account that created the Firewall Manager policy. * **PolicyId** *(string) --* The ID of the Firewall Manager policy. * **PolicyName** *(string) --* The name of the Firewall Manager policy. * **MemberAccount** *(string) --* The member account ID. * **EvaluationResults** *(list) --* An array of "EvaluationResult" objects. * *(dict) --* Describes the compliance status for the account. An account is considered noncompliant if it includes resources that are not protected by the specified policy or that don't comply with the policy. * **ComplianceStatus** *(string) --* Describes an Amazon Web Services account's compliance with the Firewall Manager policy. * **ViolatorCount** *(integer) --* The number of resources that are noncompliant with the specified policy. For WAF and Shield Advanced policies, a resource is considered noncompliant if it is not associated with the policy. For security group policies, a resource is considered noncompliant if it doesn't comply with the rules of the policy and remediation is disabled or not possible. * **EvaluationLimitExceeded** *(boolean) --* Indicates that over 100 resources are noncompliant with the Firewall Manager policy. * **LastUpdated** *(datetime) --* Timestamp of the last update to the "EvaluationResult" objects. * **IssueInfoMap** *(dict) --* Details about problems with dependent services, such as WAF or Config, and the error message received that indicates the problem with the service. * *(string) --* * *(string) --* * **NextToken** *(string) --* If you have more "PolicyComplianceStatus" objects than the number that you specified for "MaxResults" in the request, the response includes a "NextToken" value. To list more "PolicyComplianceStatus" objects, submit another "ListComplianceStatus" request, and specify the "NextToken" value from the response in the "NextToken" value in the next request. **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InternalErrorException" FMS / Client / list_protocols_lists list_protocols_lists ******************** FMS.Client.list_protocols_lists(**kwargs) Returns an array of "ProtocolsListDataSummary" objects. See also: AWS API Documentation **Request Syntax** response = client.list_protocols_lists( DefaultLists=True|False, NextToken='string', MaxResults=123 ) Parameters: * **DefaultLists** (*boolean*) -- Specifies whether the lists to retrieve are default lists owned by Firewall Manager. * **NextToken** (*string*) -- If you specify a value for "MaxResults" in your list request, and you have more objects than the maximum, Firewall Manager returns this token in the response. For all but the first request, you provide the token returned by the prior request in the request parameters, to retrieve the next batch of objects. * **MaxResults** (*integer*) -- **[REQUIRED]** The maximum number of objects that you want Firewall Manager to return for this request. If more objects are available, in the response, Firewall Manager provides a "NextToken" value that you can use in a subsequent call to get the next batch of objects. If you don't specify this, Firewall Manager returns all available objects. Return type: dict Returns: **Response Syntax** { 'ProtocolsLists': [ { 'ListArn': 'string', 'ListId': 'string', 'ListName': 'string', 'ProtocolsList': [ 'string', ] }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **ProtocolsLists** *(list) --* An array of "ProtocolsListDataSummary" objects. * *(dict) --* Details of the Firewall Manager protocols list. * **ListArn** *(string) --* The Amazon Resource Name (ARN) of the specified protocols list. * **ListId** *(string) --* The ID of the specified protocols list. * **ListName** *(string) --* The name of the specified protocols list. * **ProtocolsList** *(list) --* An array of protocols in the Firewall Manager protocols list. * *(string) --* * **NextToken** *(string) --* If you specify a value for "MaxResults" in your list request, and you have more objects than the maximum, Firewall Manager returns this token in the response. You can use this token in subsequent requests to retrieve the next batch of objects. **Exceptions** * "FMS.Client.exceptions.ResourceNotFoundException" * "FMS.Client.exceptions.InvalidOperationException" * "FMS.Client.exceptions.InternalErrorException"