Table of Contents
A low-level client representing Firewall Management Service (FMS):
import boto3
client = boto3.client('fms')
These are the available methods:
Sets the AWS Firewall Manager administrator account. AWS Firewall Manager must be associated with the master account your AWS organization or associated with a member account that has the appropriate permissions. If the account ID that you submit is not an AWS Organizations master account, AWS Firewall Manager will set the appropriate permissions for the given member account.
The account that you associate with AWS Firewall Manager is called the AWS Firewall Manager administrator account.
See also: AWS API Documentation
Request Syntax
response = client.associate_admin_account(
AdminAccount='string'
)
[REQUIRED]
The AWS account ID to associate with AWS Firewall Manager as the AWS Firewall Manager administrator account. This can be an AWS Organizations master account or a member account. For more information about AWS Organizations and master accounts, see Managing the AWS Accounts in Your Organization .
Check if an operation can be paginated.
Deletes an AWS Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.
See also: AWS API Documentation
Request Syntax
response = client.delete_notification_channel()
Permanently deletes an AWS Firewall Manager policy.
See also: AWS API Documentation
Request Syntax
response = client.delete_policy(
PolicyId='string',
DeleteAllPolicyResources=True|False
)
[REQUIRED]
The ID of the policy that you want to delete. PolicyId is returned by PutPolicy and by ListPolicies .
If True , the request will also perform a clean-up process that will:
After the cleanup, in-scope resources will no longer be protected by web ACLs in this policy. Protection of out-of-scope resources will remain unchanged. Scope is determined by tags and accounts associated with the policy. When creating the policy, if you specified that only resources in specific accounts or with specific tags be protected by the policy, those resources are in-scope. All others are out of scope. If you did not specify tags or accounts, all resources are in-scope.
None
Disassociates the account that has been set as the AWS Firewall Manager administrator account. To set a different account as the administrator account, you must submit an AssociateAdminAccount request .
See also: AWS API Documentation
Request Syntax
response = client.disassociate_admin_account()
Generate a presigned url given a client, its method, and arguments
The presigned url
Returns the AWS Organizations master account that is associated with AWS Firewall Manager as the AWS Firewall Manager administrator.
See also: AWS API Documentation
Request Syntax
response = client.get_admin_account()
{
'AdminAccount': 'string',
'RoleStatus': 'READY'|'CREATING'|'PENDING_DELETION'|'DELETING'|'DELETED'
}
Response Structure
The AWS account that is set as the AWS Firewall Manager administrator.
The status of the AWS account that you set as the AWS Firewall Manager administrator.
Returns detailed compliance information about the specified member account. Details include resources that are in and out of compliance with the specified policy. Resources are considered non-compliant if the specified policy has not been applied to them.
See also: AWS API Documentation
Request Syntax
response = client.get_compliance_detail(
PolicyId='string',
MemberAccount='string'
)
[REQUIRED]
The ID of the policy that you want to get the details for. PolicyId is returned by PutPolicy and by ListPolicies .
[REQUIRED]
The AWS account that owns the resources that you want to get the details for.
dict
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',
'ResourceType': '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 AWS account that created the AWS Firewall Manager policy.
PolicyId (string) --
The ID of the AWS Firewall Manager policy.
MemberAccount (string) --
The AWS account ID.
Violators (list) --
An array of resources that are not protected by the 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 AWS Resource Types Reference . For example: AWS::ElasticLoadBalancingV2::LoadBalancer or AWS::CloudFront::Distribution .
EvaluationLimitExceeded (boolean) --
Indicates if over 100 resources are non-compliant with the AWS Firewall Manager policy.
ExpiredAt (datetime) --
A time stamp that indicates when the returned information should be considered out-of-date.
IssueInfoMap (dict) --
Details about problems with dependent services, such as AWS WAF or AWS Config, that are causing a resource to be non-compliant. The details include the name of the dependent service and the error message received that indicates the problem with the service.
Returns information about the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.
See also: AWS API Documentation
Request Syntax
response = client.get_notification_channel()
{
'SnsTopicArn': 'string',
'SnsRoleName': 'string'
}
Response Structure
The SNS topic that records AWS Firewall Manager activity.
The IAM role that is used by AWS Firewall Manager to record activity to SNS.
Create a paginator for an operation.
Returns information about the specified AWS Firewall Manager policy.
See also: AWS API Documentation
Request Syntax
response = client.get_policy(
PolicyId='string'
)
[REQUIRED]
The ID of the AWS Firewall Manager policy that you want the details for.
{
'Policy': {
'PolicyId': 'string',
'PolicyName': 'string',
'PolicyUpdateToken': 'string',
'SecurityServicePolicyData': {
'Type': 'WAF'|'SHIELD_ADVANCED',
'ManagedServiceData': 'string'
},
'ResourceType': 'string',
'ResourceTypeList': [
'string',
],
'ResourceTags': [
{
'Key': 'string',
'Value': 'string'
},
],
'ExcludeResourceTags': True|False,
'RemediationEnabled': True|False,
'IncludeMap': {
'string': [
'string',
]
},
'ExcludeMap': {
'string': [
'string',
]
}
},
'PolicyArn': 'string'
}
Response Structure
Information about the specified AWS Firewall Manager policy.
The ID of the AWS Firewall Manager policy.
The friendly name of the AWS Firewall Manager policy.
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.
Details about the security service that is being used to protect the resources.
The service that the policy is using to protect the resources. This specifies the type of policy that is created, either a WAF policy or Shield Advanced policy.
Details about the service. This contains WAF data in JSON format, as shown in the following example:
ManagedServiceData": "{\"type\": \"WAF\", \"ruleGroups\": [{\"id\": \"12345678-1bcd-9012-efga-0987654321ab\", \"overrideAction\" : {\"type\": \"COUNT\"}}], \"defaultAction\": {\"type\": \"BLOCK\"}}
If this is a Shield Advanced policy, this string will be empty.
The type of resource to protect with the policy. This is in the format shown in AWS Resource Types Reference . For example: AWS::ElasticLoadBalancingV2::LoadBalancer or AWS::CloudFront::Distribution .
An array of ResourceType .
An array of ResourceTag objects.
The resource tags that AWS Firewall Manager uses to determine if a particular resource should be included or excluded from protection by the AWS Firewall Manager policy. Tags enable you to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define. Tags are combined with an "OR." That is, if you add more than one tag, if any of the tags matches, the resource is considered a match for the include or exclude. Working with Tag Editor .
The resource tag key.
The resource tag value.
If set to True , resources with the tags that are specified in the ResourceTag array are not protected by the policy. If set to False , and the ResourceTag array is not null, only resources with the specified tags are associated with the policy.
Indicates if the policy should be automatically applied to new resources.
Specifies the AWS account IDs to include in the policy. If IncludeMap is null, all accounts in the organization in AWS Organizations are included in the policy. If IncludeMap is not null, only values listed in IncludeMap are included in the policy.
The key to the map is ACCOUNT . For example, a valid IncludeMap would be {“ACCOUNT” : [“accountID1”, “accountID2”]} .
Specifies the AWS account IDs to exclude from the policy. The IncludeMap values are evaluated first, with all the appropriate account IDs added to the policy. Then the accounts listed in ExcludeMap are removed, resulting in the final list of accounts to add to the policy.
The key to the map is ACCOUNT . For example, a valid ExcludeMap would be {“ACCOUNT” : [“accountID1”, “accountID2”]} .
The Amazon Resource Name (ARN) of the specified policy.
If you created a Shield Advanced policy, returns policy-level attack summary information in the event of a potential DDoS attack.
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
)
[REQUIRED]
The ID of the policy for which you want to get the attack information.
dict
Response Syntax
{
'AdminAccountId': 'string',
'ServiceType': 'WAF'|'SHIELD_ADVANCED',
'Data': 'string',
'NextToken': 'string'
}
Response Structure
(dict) --
AdminAccountId (string) --
The ID of the AWS Firewall 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:
The details are in JSON format. An example is shown in the Examples section below.
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.
AWS 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.
Returns an object that can wait for some condition.
Returns an array of PolicyComplianceStatus objects in the response. 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
)
[REQUIRED]
The ID of the AWS Firewall Manager policy that you want the details for.
dict
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 non-compliant if it includes resources that are not protected by the policy.
PolicyOwner (string) --
The AWS account that created the AWS Firewall Manager policy.
PolicyId (string) --
The ID of the AWS Firewall Manager policy.
PolicyName (string) --
The friendly name of the AWS 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 non-compliant if it includes resources that are not protected by the specified policy.
ComplianceStatus (string) --
Describes an AWS account's compliance with the AWS Firewall Manager policy.
ViolatorCount (integer) --
Number of resources that are non-compliant with the specified policy. A resource is considered non-compliant if it is not associated with the specified policy.
EvaluationLimitExceeded (boolean) --
Indicates that over 100 resources are non-compliant with the AWS Firewall Manager policy.
LastUpdated (datetime) --
Time stamp of the last update to the EvaluationResult objects.
IssueInfoMap (dict) --
Details about problems with dependent services, such as AWS WAF or AWS Config, that are causing a resource to be non-compliant. The details include the name of the dependent service and the error message received that indicates the problem with the service.
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.
Returns a MemberAccounts object that lists the member accounts in the administrator's AWS organization.
The ListMemberAccounts must be submitted by the account that is set as the AWS Firewall Manager administrator.
See also: AWS API Documentation
Request Syntax
response = client.list_member_accounts(
NextToken='string',
MaxResults=123
)
dict
Response Syntax
{
'MemberAccounts': [
'string',
],
'NextToken': 'string'
}
Response Structure
(dict) --
MemberAccounts (list) --
An array of account IDs.
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.
Returns an array of PolicySummary objects in the response.
See also: AWS API Documentation
Request Syntax
response = client.list_policies(
NextToken='string',
MaxResults=123
)
dict
Response Syntax
{
'PolicyList': [
{
'PolicyArn': 'string',
'PolicyId': 'string',
'PolicyName': 'string',
'ResourceType': 'string',
'SecurityServiceType': 'WAF'|'SHIELD_ADVANCED',
'RemediationEnabled': True|False
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
PolicyList (list) --
An array of PolicySummary objects.
(dict) --
Details of the AWS 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 friendly name of the specified policy.
ResourceType (string) --
The type of resource to protect with the policy. This is in the format shown in AWS Resource Types Reference . For example: AWS::ElasticLoadBalancingV2::LoadBalancer or AWS::CloudFront::Distribution .
SecurityServiceType (string) --
The service that the policy is using to protect the resources. This specifies the type of policy that is created, either a WAF policy or Shield Advanced policy.
RemediationEnabled (boolean) --
Indicates if the policy should be automatically applied to new resources.
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.
Designates the IAM role and Amazon Simple Notification Service (SNS) topic that AWS Firewall Manager uses to record SNS logs.
See also: AWS API Documentation
Request Syntax
response = client.put_notification_channel(
SnsTopicArn='string',
SnsRoleName='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the SNS topic that collects notifications from AWS Firewall Manager.
[REQUIRED]
The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to record AWS Firewall Manager activity.
None
Creates an AWS Firewall Manager policy.
Firewall Manager provides two types of policies: A Shield Advanced policy, which applies Shield Advanced protection to specified accounts and resources, or a WAF policy, which contains a rule group and defines which resources are to be protected by that rule group. A policy is specific to either WAF or Shield Advanced. If you want to enforce both WAF rules and Shield Advanced protection across accounts, you can create multiple policies. You can create one or more policies for WAF rules, and one or more policies for Shield Advanced.
You must be subscribed to Shield Advanced to create a Shield Advanced policy. For more information on subscribing to Shield Advanced, see CreateSubscription .
See also: AWS API Documentation
Request Syntax
response = client.put_policy(
Policy={
'PolicyId': 'string',
'PolicyName': 'string',
'PolicyUpdateToken': 'string',
'SecurityServicePolicyData': {
'Type': 'WAF'|'SHIELD_ADVANCED',
'ManagedServiceData': 'string'
},
'ResourceType': 'string',
'ResourceTypeList': [
'string',
],
'ResourceTags': [
{
'Key': 'string',
'Value': 'string'
},
],
'ExcludeResourceTags': True|False,
'RemediationEnabled': True|False,
'IncludeMap': {
'string': [
'string',
]
},
'ExcludeMap': {
'string': [
'string',
]
}
}
)
[REQUIRED]
The details of the AWS Firewall Manager policy to be created.
The ID of the AWS Firewall Manager policy.
The friendly name of the AWS Firewall Manager policy.
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.
Details about the security service that is being used to protect the resources.
The service that the policy is using to protect the resources. This specifies the type of policy that is created, either a WAF policy or Shield Advanced policy.
Details about the service. This contains WAF data in JSON format, as shown in the following example:
ManagedServiceData": "{\"type\": \"WAF\", \"ruleGroups\": [{\"id\": \"12345678-1bcd-9012-efga-0987654321ab\", \"overrideAction\" : {\"type\": \"COUNT\"}}], \"defaultAction\": {\"type\": \"BLOCK\"}}
If this is a Shield Advanced policy, this string will be empty.
The type of resource to protect with the policy. This is in the format shown in AWS Resource Types Reference . For example: AWS::ElasticLoadBalancingV2::LoadBalancer or AWS::CloudFront::Distribution .
An array of ResourceType .
An array of ResourceTag objects.
The resource tags that AWS Firewall Manager uses to determine if a particular resource should be included or excluded from protection by the AWS Firewall Manager policy. Tags enable you to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define. Tags are combined with an "OR." That is, if you add more than one tag, if any of the tags matches, the resource is considered a match for the include or exclude. Working with Tag Editor .
The resource tag key.
The resource tag value.
If set to True , resources with the tags that are specified in the ResourceTag array are not protected by the policy. If set to False , and the ResourceTag array is not null, only resources with the specified tags are associated with the policy.
Indicates if the policy should be automatically applied to new resources.
Specifies the AWS account IDs to include in the policy. If IncludeMap is null, all accounts in the organization in AWS Organizations are included in the policy. If IncludeMap is not null, only values listed in IncludeMap are included in the policy.
The key to the map is ACCOUNT . For example, a valid IncludeMap would be {“ACCOUNT” : [“accountID1”, “accountID2”]} .
Specifies the AWS account IDs to exclude from the policy. The IncludeMap values are evaluated first, with all the appropriate account IDs added to the policy. Then the accounts listed in ExcludeMap are removed, resulting in the final list of accounts to add to the policy.
The key to the map is ACCOUNT . For example, a valid ExcludeMap would be {“ACCOUNT” : [“accountID1”, “accountID2”]} .
{
'Policy': {
'PolicyId': 'string',
'PolicyName': 'string',
'PolicyUpdateToken': 'string',
'SecurityServicePolicyData': {
'Type': 'WAF'|'SHIELD_ADVANCED',
'ManagedServiceData': 'string'
},
'ResourceType': 'string',
'ResourceTypeList': [
'string',
],
'ResourceTags': [
{
'Key': 'string',
'Value': 'string'
},
],
'ExcludeResourceTags': True|False,
'RemediationEnabled': True|False,
'IncludeMap': {
'string': [
'string',
]
},
'ExcludeMap': {
'string': [
'string',
]
}
},
'PolicyArn': 'string'
}
Response Structure
The details of the AWS Firewall Manager policy that was created.
The ID of the AWS Firewall Manager policy.
The friendly name of the AWS Firewall Manager policy.
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.
Details about the security service that is being used to protect the resources.
The service that the policy is using to protect the resources. This specifies the type of policy that is created, either a WAF policy or Shield Advanced policy.
Details about the service. This contains WAF data in JSON format, as shown in the following example:
ManagedServiceData": "{\"type\": \"WAF\", \"ruleGroups\": [{\"id\": \"12345678-1bcd-9012-efga-0987654321ab\", \"overrideAction\" : {\"type\": \"COUNT\"}}], \"defaultAction\": {\"type\": \"BLOCK\"}}
If this is a Shield Advanced policy, this string will be empty.
The type of resource to protect with the policy. This is in the format shown in AWS Resource Types Reference . For example: AWS::ElasticLoadBalancingV2::LoadBalancer or AWS::CloudFront::Distribution .
An array of ResourceType .
An array of ResourceTag objects.
The resource tags that AWS Firewall Manager uses to determine if a particular resource should be included or excluded from protection by the AWS Firewall Manager policy. Tags enable you to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define. Tags are combined with an "OR." That is, if you add more than one tag, if any of the tags matches, the resource is considered a match for the include or exclude. Working with Tag Editor .
The resource tag key.
The resource tag value.
If set to True , resources with the tags that are specified in the ResourceTag array are not protected by the policy. If set to False , and the ResourceTag array is not null, only resources with the specified tags are associated with the policy.
Indicates if the policy should be automatically applied to new resources.
Specifies the AWS account IDs to include in the policy. If IncludeMap is null, all accounts in the organization in AWS Organizations are included in the policy. If IncludeMap is not null, only values listed in IncludeMap are included in the policy.
The key to the map is ACCOUNT . For example, a valid IncludeMap would be {“ACCOUNT” : [“accountID1”, “accountID2”]} .
Specifies the AWS account IDs to exclude from the policy. The IncludeMap values are evaluated first, with all the appropriate account IDs added to the policy. Then the accounts listed in ExcludeMap are removed, resulting in the final list of accounts to add to the policy.
The key to the map is ACCOUNT . For example, a valid ExcludeMap would be {“ACCOUNT” : [“accountID1”, “accountID2”]} .
The Amazon Resource Name (ARN) of the policy that was created.
The available paginators are:
paginator = client.get_paginator('list_compliance_status')
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'
}
)
[REQUIRED]
The ID of the AWS Firewall Manager policy that you want the details for.
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
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 non-compliant if it includes resources that are not protected by the policy.
PolicyOwner (string) --
The AWS account that created the AWS Firewall Manager policy.
PolicyId (string) --
The ID of the AWS Firewall Manager policy.
PolicyName (string) --
The friendly name of the AWS 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 non-compliant if it includes resources that are not protected by the specified policy.
ComplianceStatus (string) --
Describes an AWS account's compliance with the AWS Firewall Manager policy.
ViolatorCount (integer) --
Number of resources that are non-compliant with the specified policy. A resource is considered non-compliant if it is not associated with the specified policy.
EvaluationLimitExceeded (boolean) --
Indicates that over 100 resources are non-compliant with the AWS Firewall Manager policy.
LastUpdated (datetime) --
Time stamp of the last update to the EvaluationResult objects.
IssueInfoMap (dict) --
Details about problems with dependent services, such as AWS WAF or AWS Config, that are causing a resource to be non-compliant. The details include the name of the dependent service and the error message received that indicates the problem with the service.
paginator = client.get_paginator('list_member_accounts')
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'
}
)
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
{
'MemberAccounts': [
'string',
],
}
Response Structure
An array of account IDs.
paginator = client.get_paginator('list_policies')
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'
}
)
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
{
'PolicyList': [
{
'PolicyArn': 'string',
'PolicyId': 'string',
'PolicyName': 'string',
'ResourceType': 'string',
'SecurityServiceType': 'WAF'|'SHIELD_ADVANCED',
'RemediationEnabled': True|False
},
],
}
Response Structure
An array of PolicySummary objects.
Details of the AWS Firewall Manager policy.
The Amazon Resource Name (ARN) of the specified policy.
The ID of the specified policy.
The friendly name of the specified policy.
The type of resource to protect with the policy. This is in the format shown in AWS Resource Types Reference . For example: AWS::ElasticLoadBalancingV2::LoadBalancer or AWS::CloudFront::Distribution .
The service that the policy is using to protect the resources. This specifies the type of policy that is created, either a WAF policy or Shield Advanced policy.
Indicates if the policy should be automatically applied to new resources.