Class: AWS.FMS
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.FMS
- Identifier:
- fms
- API Version:
- 2018-01-01
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
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.
Sending a Request Using FMS
var fms = new AWS.FMS();
fms.associateAdminAccount(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the FMS object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var fms = new AWS.FMS({apiVersion: '2018-01-01'});
You can also set the API version globally in AWS.config.apiVersions
using
the fms service identifier:
AWS.config.apiVersions = {
fms: '2018-01-01',
// other service API versions
};
var fms = new AWS.FMS();
Version:
-
2018-01-01
Constructor Summary collapse
-
new AWS.FMS(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
associateAdminAccount(params = {}, callback) ⇒ AWS.Request
Sets a Firewall Manager default administrator account.
-
associateThirdPartyFirewall(params = {}, callback) ⇒ AWS.Request
Sets the Firewall Manager policy administrator as a tenant administrator of a third-party firewall service.
-
batchAssociateResource(params = {}, callback) ⇒ AWS.Request
Associate resources to a Firewall Manager resource set.
.
-
batchDisassociateResource(params = {}, callback) ⇒ AWS.Request
Disassociates resources from a Firewall Manager resource set.
.
-
deleteAppsList(params = {}, callback) ⇒ AWS.Request
Permanently deletes an Firewall Manager applications list.
.
-
deleteNotificationChannel(params = {}, callback) ⇒ AWS.Request
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.
.
-
deletePolicy(params = {}, callback) ⇒ AWS.Request
Permanently deletes an Firewall Manager policy.
-
deleteProtocolsList(params = {}, callback) ⇒ AWS.Request
Permanently deletes an Firewall Manager protocols list.
.
-
deleteResourceSet(params = {}, callback) ⇒ AWS.Request
Deletes the specified ResourceSet.
.
-
disassociateAdminAccount(params = {}, callback) ⇒ AWS.Request
Disassociates an Firewall Manager administrator account.
-
disassociateThirdPartyFirewall(params = {}, callback) ⇒ AWS.Request
Disassociates a Firewall Manager policy administrator from a third-party firewall tenant.
-
getAdminAccount(params = {}, callback) ⇒ AWS.Request
Returns the Organizations account that is associated with Firewall Manager as the Firewall Manager default administrator.
.
-
getAdminScope(params = {}, callback) ⇒ AWS.Request
Returns information about the specified account's administrative scope.
-
getAppsList(params = {}, callback) ⇒ AWS.Request
Returns information about the specified Firewall Manager applications list.
.
-
getComplianceDetail(params = {}, callback) ⇒ AWS.Request
Returns detailed compliance information about the specified member account.
-
getNotificationChannel(params = {}, callback) ⇒ AWS.Request
Information about the Amazon Simple Notification Service (SNS) topic that is used to record Firewall Manager SNS logs.
.
-
getPolicy(params = {}, callback) ⇒ AWS.Request
Returns information about the specified Firewall Manager policy.
.
-
getProtectionStatus(params = {}, callback) ⇒ AWS.Request
If you created a Shield Advanced policy, returns policy-level attack summary information in the event of a potential DDoS attack.
-
getProtocolsList(params = {}, callback) ⇒ AWS.Request
Returns information about the specified Firewall Manager protocols list.
.
-
getResourceSet(params = {}, callback) ⇒ AWS.Request
Gets information about a specific resource set.
.
-
getThirdPartyFirewallAssociationStatus(params = {}, callback) ⇒ AWS.Request
The onboarding status of a Firewall Manager admin account to third-party firewall vendor tenant.
.
-
getViolationDetails(params = {}, callback) ⇒ AWS.Request
Retrieves violations for a resource based on the specified Firewall Manager policy and Amazon Web Services account.
.
-
listAdminAccountsForOrganization(params = {}, callback) ⇒ AWS.Request
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.
. -
listAdminsManagingAccount(params = {}, callback) ⇒ AWS.Request
Lists the accounts that are managing the specified Organizations member account.
-
listAppsLists(params = {}, callback) ⇒ AWS.Request
Returns an array of
AppsListDataSummary
objects..
-
listComplianceStatus(params = {}, callback) ⇒ AWS.Request
Returns an array of
PolicyComplianceStatus
objects. -
listDiscoveredResources(params = {}, callback) ⇒ AWS.Request
Returns an array of resources in the organization's accounts that are available to be associated with a resource set.
.
-
listMemberAccounts(params = {}, callback) ⇒ AWS.Request
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.
. -
listPolicies(params = {}, callback) ⇒ AWS.Request
Returns an array of
PolicySummary
objects..
-
listProtocolsLists(params = {}, callback) ⇒ AWS.Request
Returns an array of
ProtocolsListDataSummary
objects..
-
listResourceSetResources(params = {}, callback) ⇒ AWS.Request
Returns an array of resources that are currently associated to a resource set.
.
-
listResourceSets(params = {}, callback) ⇒ AWS.Request
Returns an array of
ResourceSetSummary
objects..
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Retrieves the list of tags for the specified Amazon Web Services resource.
-
listThirdPartyFirewallFirewallPolicies(params = {}, callback) ⇒ AWS.Request
Retrieves a list of all of the third-party firewall policies that are associated with the third-party firewall administrator's account.
.
-
putAdminAccount(params = {}, callback) ⇒ AWS.Request
Creates or updates an Firewall Manager administrator account.
-
putAppsList(params = {}, callback) ⇒ AWS.Request
Creates an Firewall Manager applications list.
.
-
putNotificationChannel(params = {}, callback) ⇒ AWS.Request
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. -
putPolicy(params = {}, callback) ⇒ AWS.Request
Creates an Firewall Manager policy.
A Firewall Manager policy is specific to the individual policy type.
-
putProtocolsList(params = {}, callback) ⇒ AWS.Request
Creates an Firewall Manager protocols list.
.
-
putResourceSet(params = {}, callback) ⇒ AWS.Request
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.
. -
tagResource(params = {}, callback) ⇒ AWS.Request
Adds one or more tags to an Amazon Web Services resource.
.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Removes one or more tags from an Amazon Web Services resource.
.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.FMS(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Examples:
Constructing a FMS object
var fms = new AWS.FMS({apiVersion: '2018-01-01'});
Options Hash (options):
-
params
(map)
—
An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.
-
endpoint
(String|AWS.Endpoint)
—
The endpoint URI to send requests to. The default endpoint is built from the configured
region
. The endpoint should be a string like'https://{service}.{region}.amazonaws.com'
or an Endpoint object. -
accessKeyId
(String)
—
your AWS access key ID.
-
secretAccessKey
(String)
—
your AWS secret access key.
-
sessionToken
(AWS.Credentials)
—
the optional AWS session token to sign requests with.
-
credentials
(AWS.Credentials)
—
the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.
-
credentialProvider
(AWS.CredentialProviderChain)
—
the provider chain used to resolve credentials if no static
credentials
property is set. -
region
(String)
—
the region to send service requests to. See AWS.FMS.region for more information.
-
maxRetries
(Integer)
—
the maximum amount of retries to attempt with a request. See AWS.FMS.maxRetries for more information.
-
maxRedirects
(Integer)
—
the maximum amount of redirects to follow with a request. See AWS.FMS.maxRedirects for more information.
-
sslEnabled
(Boolean)
—
whether to enable SSL for requests.
-
paramValidation
(Boolean|map)
—
whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
true
. - max [Boolean] — Validates that a value meets the max constraint.
- pattern [Boolean] — Validates that a string value matches a regular expression.
- enum [Boolean] — Validates that a string value matches one of the allowable enum values.
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
-
computeChecksums
(Boolean)
—
whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)
-
convertResponseTypes
(Boolean)
—
whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to
true
. -
correctClockSkew
(Boolean)
—
whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to
false
. -
s3ForcePathStyle
(Boolean)
—
whether to force path style URLs for S3 objects.
-
s3BucketEndpoint
(Boolean)
—
whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an
endpoint
to be provided explicitly to the service constructor. -
s3DisableBodySigning
(Boolean)
—
whether S3 body signing should be disabled when using signature version
v4
. Body signing can only be disabled when using https. Defaults totrue
. -
s3UsEast1RegionalEndpoint
('legacy'|'regional')
—
when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to
legacy
-
s3UseArnRegion
(Boolean)
—
whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to
true
-
retryDelayOptions
(map)
—
A set of options to configure the retry delay on retryable errors. Currently supported options are:
- base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
- customBackoff [function] — A custom function that accepts a
retry count and error and returns the amount of time to delay in
milliseconds. If the result is a non-zero negative value, no further
retry attempts will be made. The
base
option will be ignored if this option is supplied. The function is only called for retryable errors.
-
httpOptions
(map)
—
A set of options to pass to the low-level HTTP request. Currently supported options are:
- proxy [String] — the URL to proxy requests through
- agent [http.Agent, https.Agent] — the Agent object to perform
HTTP requests with. Used for connection pooling. Defaults to the global
agent (
http.globalAgent
) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment. - connectTimeout [Integer] — Sets the socket to timeout after
failing to establish a connection with the server after
connectTimeout
milliseconds. This timeout has no effect once a socket connection has been established. - timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
- xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
- xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
-
apiVersion
(String, Date)
—
a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by
apiVersions
). Specify 'latest' to use the latest possible version. -
apiVersions
(map<String, String|Date>)
—
a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.
-
logger
(#write, #log)
—
an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests
-
systemClockOffset
(Number)
—
an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global
AWS.config
object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds. -
signatureVersion
(String)
—
the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.
-
signatureCache
(Boolean)
—
whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to
true
. -
dynamoDbCrc32
(Boolean)
—
whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default:
true
. -
useAccelerateEndpoint
(Boolean)
—
Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default:
false
. -
clientSideMonitoring
(Boolean)
—
whether to collect and publish this client's performance metrics of all its API requests.
-
endpointDiscoveryEnabled
(Boolean|undefined)
—
whether to call operations with endpoints given by service dynamically. Setting this
-
endpointCacheSize
(Number)
—
the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000
-
hostPrefixEnabled
(Boolean)
—
whether to marshal request parameters to the prefix of hostname. Defaults to
true
. -
stsRegionalEndpoints
('legacy'|'regional')
—
whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.
-
useFipsEndpoint
(Boolean)
—
Enables FIPS compatible endpoints. Defaults to
false
. -
useDualstackEndpoint
(Boolean)
—
Enables IPv6 dualstack endpoint. Defaults to
false
.
Property Details
Method Details
associateAdminAccount(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the associateAdminAccount operation
var params = {
AdminAccount: 'STRING_VALUE' /* required */
};
fms.associateAdminAccount(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
AdminAccount
— (String
)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
associateThirdPartyFirewall(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the associateThirdPartyFirewall operation
var params = {
ThirdPartyFirewall: PALO_ALTO_NETWORKS_CLOUD_NGFW | FORTIGATE_CLOUD_NATIVE_FIREWALL /* required */
};
fms.associateThirdPartyFirewall(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ThirdPartyFirewall
— (String
)The name of the third-party firewall vendor.
Possible values include:"PALO_ALTO_NETWORKS_CLOUD_NGFW"
"FORTIGATE_CLOUD_NATIVE_FIREWALL"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties: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.
"ONBOARDING"
"ONBOARD_COMPLETE"
"OFFBOARDING"
"OFFBOARD_COMPLETE"
"NOT_EXIST"
-
-
(AWS.Response)
—
Returns:
batchAssociateResource(params = {}, callback) ⇒ AWS.Request
Associate resources to a Firewall Manager resource set.
Service Reference:
Examples:
Calling the batchAssociateResource operation
var params = {
Items: [ /* required */
'STRING_VALUE',
/* more items */
],
ResourceSetIdentifier: 'STRING_VALUE' /* required */
};
fms.batchAssociateResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceSetIdentifier
— (String
)A unique identifier for the resource set, used in a request to refer to the resource set.
Items
— (Array<String>
)The uniform resource identifiers (URIs) of resources that should be associated to the resource set. The URIs must be Amazon Resource Names (ARNs).
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ResourceSetIdentifier
— (String
)A unique identifier for the resource set, used in a request to refer to the resource set.
FailedItems
— (Array<map>
)The resources that failed to associate to the 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.
Possible values include:"NOT_VALID_ARN"
"NOT_VALID_PARTITION"
"NOT_VALID_REGION"
"NOT_VALID_SERVICE"
"NOT_VALID_RESOURCE_TYPE"
"NOT_VALID_ACCOUNT_ID"
-
(AWS.Response)
—
Returns:
batchDisassociateResource(params = {}, callback) ⇒ AWS.Request
Disassociates resources from a Firewall Manager resource set.
Service Reference:
Examples:
Calling the batchDisassociateResource operation
var params = {
Items: [ /* required */
'STRING_VALUE',
/* more items */
],
ResourceSetIdentifier: 'STRING_VALUE' /* required */
};
fms.batchDisassociateResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceSetIdentifier
— (String
)A unique identifier for the resource set, used in a request to refer to the resource set.
Items
— (Array<String>
)The uniform resource identifiers (URI) of resources that should be disassociated from the resource set. The URIs must be Amazon Resource Names (ARNs).
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ResourceSetIdentifier
— (String
)A unique identifier for the resource set, used in a request to refer to the resource set.
FailedItems
— (Array<map>
)The resources that failed to disassociate from the 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.
Possible values include:"NOT_VALID_ARN"
"NOT_VALID_PARTITION"
"NOT_VALID_REGION"
"NOT_VALID_SERVICE"
"NOT_VALID_RESOURCE_TYPE"
"NOT_VALID_ACCOUNT_ID"
-
(AWS.Response)
—
Returns:
deleteAppsList(params = {}, callback) ⇒ AWS.Request
Permanently deletes an Firewall Manager applications list.
Service Reference:
Examples:
Calling the deleteAppsList operation
var params = {
ListId: 'STRING_VALUE' /* required */
};
fms.deleteAppsList(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ListId
— (String
)The ID of the applications list that you want to delete. You can retrieve this ID from
PutAppsList
,ListAppsLists
, andGetAppsList
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteNotificationChannel(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the deleteNotificationChannel operation
var params = {
};
fms.deleteNotificationChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
- params (Object) (defaults to: {})
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deletePolicy(params = {}, callback) ⇒ AWS.Request
Permanently deletes an Firewall Manager policy.
Service Reference:
Examples:
Calling the deletePolicy operation
var params = {
PolicyId: 'STRING_VALUE', /* required */
DeleteAllPolicyResources: true || false
};
fms.deletePolicy(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
PolicyId
— (String
)The ID of the policy that you want to delete. You can retrieve this ID from
PutPolicy
andListPolicies
.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 toFalse
, 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.
-
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteProtocolsList(params = {}, callback) ⇒ AWS.Request
Permanently deletes an Firewall Manager protocols list.
Service Reference:
Examples:
Calling the deleteProtocolsList operation
var params = {
ListId: 'STRING_VALUE' /* required */
};
fms.deleteProtocolsList(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ListId
— (String
)The ID of the protocols list that you want to delete. You can retrieve this ID from
PutProtocolsList
,ListProtocolsLists
, andGetProtocolsLost
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteResourceSet(params = {}, callback) ⇒ AWS.Request
Deletes the specified ResourceSet.
Service Reference:
Examples:
Calling the deleteResourceSet operation
var params = {
Identifier: 'STRING_VALUE' /* required */
};
fms.deleteResourceSet(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
Identifier
— (String
)A unique identifier for the resource set, used in a request to refer to the resource set.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
disassociateAdminAccount(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the disassociateAdminAccount operation
var params = {
};
fms.disassociateAdminAccount(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
- params (Object) (defaults to: {})
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
disassociateThirdPartyFirewall(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the disassociateThirdPartyFirewall operation
var params = {
ThirdPartyFirewall: PALO_ALTO_NETWORKS_CLOUD_NGFW | FORTIGATE_CLOUD_NATIVE_FIREWALL /* required */
};
fms.disassociateThirdPartyFirewall(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ThirdPartyFirewall
— (String
)The name of the third-party firewall vendor.
Possible values include:"PALO_ALTO_NETWORKS_CLOUD_NGFW"
"FORTIGATE_CLOUD_NATIVE_FIREWALL"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ThirdPartyFirewallStatus
— (String
)The current status for the disassociation of a Firewall Manager administrators account with a third-party firewall.
Possible values include:"ONBOARDING"
"ONBOARD_COMPLETE"
"OFFBOARDING"
"OFFBOARD_COMPLETE"
"NOT_EXIST"
-
(AWS.Response)
—
Returns:
getAdminAccount(params = {}, callback) ⇒ AWS.Request
Returns the Organizations account that is associated with Firewall Manager as the Firewall Manager default administrator.
Service Reference:
Examples:
Calling the getAdminAccount operation
var params = {
};
fms.getAdminAccount(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
- params (Object) (defaults to: {})
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties: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.
Possible values include:"READY"
"CREATING"
"PENDING_DELETION"
"DELETING"
"DELETED"
-
(AWS.Response)
—
Returns:
getAdminScope(params = {}, callback) ⇒ AWS.Request
Returns information about the specified account's administrative scope. The administrative scope defines the resources that an Firewall Manager administrator can manage.
Service Reference:
Examples:
Calling the getAdminScope operation
var params = {
AdminAccount: 'STRING_VALUE' /* required */
};
fms.getAdminScope(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
AdminAccount
— (String
)The administrator account that you want to get the details for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:AdminScope
— (map
)Contains details about the administrative scope of the requested account.
AccountScope
— (map
)Defines the accounts that the specified Firewall Manager administrator can apply policies to.
Accounts
— (Array<String>
)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
. IfExcludeSpecifiedAccounts
is set totrue
, then the Firewall Manager administrator can apply policies to all members of the organization except for the accounts in this list. IfExcludeSpecifiedAccounts
is set tofalse
, then the Firewall Manager administrator can only apply policies to the accounts in this list.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 inAccountScope$Accounts
. You can either specify a list of accounts to exclude byAccountScope$Accounts
, or you can enable management of all accounts byAccountScope$AllAccountsEnabled
. You cannot specify both.
OrganizationalUnitScope
— (map
)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
— (Array<String>
)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
OrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnits
. IfOrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnits
is set totrue
, then the Firewall Manager administrator can apply policies to all OUs in the organization except for the OUs in this list. IfOrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnits
is set tofalse
, then the Firewall Manager administrator can only apply policies to the OUs in this list.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 inOrganizationalUnitScope$OrganizationalUnits
. You can either specify a list of OUs to exclude byOrganizationalUnitScope$OrganizationalUnits
, or you can enable management of all OUs byOrganizationalUnitScope$AllOrganizationalUnitsEnabled
. You cannot specify both.
RegionScope
— (map
)Defines the Amazon Web Services Regions that the specified Firewall Manager administrator can perform actions in.
Regions
— (Array<String>
)The Amazon Web Services Regions that the specified Firewall Manager administrator can perform actions in.
AllRegionsEnabled
— (Boolean
)Allows the specified Firewall Manager administrator to manage all Amazon Web Services Regions.
PolicyTypeScope
— (map
)Defines the Firewall Manager policy types that the specified Firewall Manager administrator can create and manage.
PolicyTypes
— (Array<String>
)The list of policy types that the specified Firewall Manager administrator can manage.
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.
"ONBOARDING"
"ONBOARDING_COMPLETE"
"OFFBOARDING"
"OFFBOARDING_COMPLETE"
-
-
(AWS.Response)
—
Returns:
getAppsList(params = {}, callback) ⇒ AWS.Request
Returns information about the specified Firewall Manager applications list.
Service Reference:
Examples:
Calling the getAppsList operation
var params = {
ListId: 'STRING_VALUE', /* required */
DefaultList: true || false
};
fms.getAppsList(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ListId
— (String
)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:AppsList
— (map
)Information about the specified Firewall Manager applications list.
ListId
— (String
)The ID of the Firewall Manager applications list.
ListName
— required — (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
— (Date
)The time that the Firewall Manager applications list was created.
LastUpdateTime
— (Date
)The time that the Firewall Manager applications list was last updated.
AppsList
— required — (Array<map>
)An array of applications in the Firewall Manager applications list.
AppName
— required — (String
)The application's name.
Protocol
— required — (String
)The IP protocol name or number. The name can be one of
tcp
,udp
, oricmp
. For information on possible numbers, see Protocol Numbers.Port
— required — (Integer
)The application's port number, for example
80
.
PreviousAppsList
— (map<Array<map>>
)A map of previous version numbers to their corresponding
App
object arrays.AppName
— required — (String
)The application's name.
Protocol
— required — (String
)The IP protocol name or number. The name can be one of
tcp
,udp
, oricmp
. For information on possible numbers, see Protocol Numbers.Port
— required — (Integer
)The application's port number, for example
80
.
AppsListArn
— (String
)The Amazon Resource Name (ARN) of the applications list.
-
(AWS.Response)
—
Returns:
getComplianceDetail(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the getComplianceDetail operation
var params = {
MemberAccount: 'STRING_VALUE', /* required */
PolicyId: 'STRING_VALUE' /* required */
};
fms.getComplianceDetail(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
PolicyId
— (String
)The ID of the policy that you want to get the details for.
PolicyId
is returned byPutPolicy
and byListPolicies
.MemberAccount
— (String
)The Amazon Web Services account that owns the resources that you want to get the details for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:PolicyComplianceDetail
— (map
)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
— (Array<map>
)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.
ResourceId
— (String
)The resource ID.
ViolationReason
— (String
)The reason that the resource is not protected by the policy.
Possible values include:"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"
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
, orAWS::NetworkFirewall::FirewallPolicy
.Metadata
— (map<String>
)Metadata about the resource that doesn't comply with the policy scope.
EvaluationLimitExceeded
— (Boolean
)Indicates if over 100 resources are noncompliant with the Firewall Manager policy.
ExpiredAt
— (Date
)A timestamp that indicates when the returned information should be considered out of date.
IssueInfoMap
— (map<String>
)Details about problems with dependent services, such as WAF or Config, and the error message received that indicates the problem with the service.
-
(AWS.Response)
—
Returns:
getNotificationChannel(params = {}, callback) ⇒ AWS.Request
Information about the Amazon Simple Notification Service (SNS) topic that is used to record Firewall Manager SNS logs.
Service Reference:
Examples:
Calling the getNotificationChannel operation
var params = {
};
fms.getNotificationChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
- params (Object) (defaults to: {})
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties: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.
-
(AWS.Response)
—
Returns:
getPolicy(params = {}, callback) ⇒ AWS.Request
Returns information about the specified Firewall Manager policy.
Service Reference:
Examples:
Calling the getPolicy operation
var params = {
PolicyId: 'STRING_VALUE' /* required */
};
fms.getPolicy(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
PolicyId
— (String
)The ID of the Firewall Manager policy that you want the details for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Policy
— (map
)Information about the specified Firewall Manager policy.
PolicyId
— (String
)The ID of the Firewall Manager policy.
PolicyName
— required — (String
)The name of the Firewall Manager policy.
PolicyUpdateToken
— (String
)A unique identifier for each update to the policy. When issuing a
PutPolicy
request, thePolicyUpdateToken
in the request must match thePolicyUpdateToken
of the current policy version. To get thePolicyUpdateToken
of the current policy version, use aGetPolicy
request.SecurityServicePolicyData
— required — (map
)Details about the security service that is being used to protect the resources.
Type
— required — (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.
Possible values include:"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
)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\":[{\"ruleGroupId\":\"rslvr-frg-2\",\"priority\":9911}]}"
Note: Valid values forpreProcessRuleGroups
are between 1 and 99. Valid values forpostProcessRuleGroups
are between 9901 and 10000. -
Example:
IMPORT_NETWORK_FIREWALL
"{\"type\":\"IMPORT_NETWORK_FIREWALL\",\"awsNetworkFirewallConfig\":{\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-west-2:000000000000:stateless-rulegroup\/rg1\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:drop\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:pass\"],\"networkFirewallStatelessCustomActions\":[],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-west-2:aws-managed:stateful-rulegroup\/ThreatSignaturesEmergingEventsStrictOrder\",\"priority\":8}],\"networkFirewallStatefulEngineOptions\":{\"ruleOrder\":\"STRICT_ORDER\"},\"networkFirewallStatefulDefaultActions\":[\"aws:drop_strict\"]}}"
"{\"type\":\"DNS_FIREWALL\",\"preProcessRuleGroups\":[{\"ruleGroupId\":\"rslvr-frg-1\",\"priority\":10}],\"postProcessRuleGroups\":[{\"ruleGroupId\":\"rslvr-frg-2\",\"priority\":9911}]}"
Note: Valid values forpreProcessRuleGroups
are between 1 and 99. Valid values forpostProcessRuleGroups
are between 9901 and 10000. -
Example:
NETWORK_FIREWALL
- Centralized deployment model"{\"type\":\"NETWORK_FIREWALL\",\"awsNetworkFirewallConfig\":{\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateless-rulegroup/test\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"customActionName\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"metricdimensionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateful-rulegroup/test\"}],\"networkFirewallLoggingConfiguration\":{\"logDestinationConfigs\":[{\"logDestinationType\":\"S3\",\"logType\":\"ALERT\",\"logDestination\":{\"bucketName\":\"s3-bucket-name\"}},{\"logDestinationType\":\"S3\",\"logType\":\"FLOW\",\"logDestination\":{\"bucketName\":\"s3-bucket-name\"}}],\"overrideExistingConfig\":true}},\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"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\",\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateless-rulegroup/test\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"customActionName\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"metricdimensionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateful-rulegroup/test\"}],\"networkFirewallOrchestrationConfig\":{\"singleFirewallEndpointPerVPC\":false,\"allowedIPV4CidrList\":[\"10.0.0.0/28\",\"192.168.0.0/28\"],\"routeManagementAction\":\"OFF\"},\"networkFirewallLoggingConfiguration\":{\"logDestinationConfigs\":[{\"logDestinationType\":\"S3\",\"logType\":\"ALERT\",\"logDestination\":{\"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\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"customActionName\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"metricdimensionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateful-rulegroup/test\"}],\"networkFirewallOrchestrationConfig\":{\"singleFirewallEndpointPerVPC\":false,\"allowedIPV4CidrList\":[\"10.0.0.0/28\",\"192.168.0.0/28\"],\"routeManagementAction\":\"MONITOR\",\"routeManagementTargetTypes\":[\"InternetGateway\"]},\"networkFirewallLoggingConfiguration\":{\"logDestinationConfigs\":[{\"logDestinationType\":\"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\",\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateless-rulegroup/test\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:forward_to_sfe\",\"fragmentcustomactionname\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"customActionName\", \"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"metricdimensionvalue\"}]}}},{\"actionName\":\"fragmentcustomactionname\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"fragmentmetricdimensionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateful-rulegroup/test\"}],\"networkFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{ \"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]},{\"availabilityZoneName\":\"us-east-1b\",\"allowedIPV4CidrList\":[ \"10.0.0.0/28\"]}]} },\"singleFirewallEndpointPerVPC\":false,\"allowedIPV4CidrList\":null,\"routeManagementAction\":\"OFF\",\"networkFirewallLoggingConfiguration\":{\"logDestinationConfigs\":[{\"logDestinationType\":\"S3\",\"logType\":\"ALERT\",\"logDestination\":{\"bucketName\":\"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 infirewallCreationConfig
, specify either theavailabilityZoneName
oravailabilityZoneId
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\",\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateless-rulegroup/test\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:forward_to_sfe\",\"fragmentcustomactionname\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"customActionName\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"metricdimensionvalue\"}]}}},{\"actionName\":\"fragmentcustomactionname\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"fragmentmetricdimensionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateful-rulegroup/test\"}],\"networkFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]},{\"availabilityZoneName\":\"us-east-1b\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"singleFirewallEndpointPerVPC\":false,\"allowedIPV4CidrList\":null,\"routeManagementAction\":\"MONITOR\",\"routeManagementTargetTypes\":[\"InternetGateway\"],\"routeManagementConfig\":{\"allowCrossAZTrafficIfNoEndpoint\":true}},\"networkFirewallLoggingConfiguration\":{\"logDestinationConfigs\":[{\"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\":\"SECURITY_GROUPS_COMMON\",\"revertManualSecurityGroupChanges\":false,\"exclusiveResourceSecurityGroupManagement\":false, \"applyToAllEC2InstanceENIs\":false,\"securityGroups\":[{\"id\":\" sg-000e55995d61a06bd\"}]}"
-
Example:
SECURITY_GROUPS_COMMON
- Security group tag distribution""{\"type\":\"SECURITY_GROUPS_COMMON\",\"securityGroups\":[{\"id\":\"sg-000e55995d61a06bd\"}],\"revertManualSecurityGroupChanges\":true,\"exclusiveResourceSecurityGroupManagement\":false,\"applyToAllEC2InstanceENIs\":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
totrue
, otherwise Firewall Manager won't be able to create the policy. When you enablerevertManualSecurityGroupChanges
, 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_COMMON\",\"revertManualSecurityGroupChanges\":false,\"exclusiveResourceSecurityGroupManagement\":false, \"applyToAllEC2InstanceENIs\":false,\"includeSharedVPC\":true,\"securityGroups\":[{\"id\":\" sg-000e55995d61a06bd\"}]}"
-
Example:
SECURITY_GROUPS_CONTENT_AUDIT
"{\"type\":\"SECURITY_GROUPS_CONTENT_AUDIT\",\"securityGroups\":[{\"id\":\"sg-000e55995d61a06bd\"}],\"securityGroupAction\":{\"type\":\"ALLOW\"}}"
The security group action for content audit can be
ALLOW
orDENY
. ForALLOW
, all in-scope security group rules must be within the allowed range of the policy's security group rules. ForDENY
, 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\",\"deleteUnusedSecurityGroups\":true,\"coalesceRedundantSecurityGroups\":true}"
-
Example:
SHIELD_ADVANCED
with web ACL management"{\"type\":\"SHIELD_ADVANCED\",\"optimizeUnassociatedWebACL\":true}"
If you set
optimizeUnassociatedWebACL
totrue
, 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
tofalse
, 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\": {\"automaticResponseStatus\":\"ENABLED|IGNORED|DISABLED\", \"automaticResponseAction\":\"BLOCK|COUNT\"}, \"overrideCustomerWebaclClassic\":true|false, \"optimizeUnassociatedWebACL\":true|false}"
For example:
"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": {\"automaticResponseStatus\":\"ENABLED\", \"automaticResponseAction\":\"COUNT\"}}"
The default value for
automaticResponseStatus
isIGNORED
. The value forautomaticResponseAction
is only required whenautomaticResponseStatus
is set toENABLED
. The default value foroverrideCustomerWebaclClassic
isfalse
.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,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"versionEnabled\":null,\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesATPRuleSet\",\"managedRuleGroupConfigs\":[{\"awsmanagedRulesATPRuleSet\":{\"loginPath\":\"/loginpath\",\"requestInspection\":{\"payloadType\":\"FORM_ENCODED|JSON\",\"usernameField\":{\"identifier\":\"/form/username\"},\"passwordField\":{\"identifier\":\"/form/password\"}}}}]},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[],\"sampledRequestsEnabled\":true},{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"versionEnabled\":null,\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesBotControlRuleSet\",\"managedRuleGroupConfigs\":[{\"awsmanagedRulesBotControlRuleSet\":{\"inspectionLevel\":\"TARGETED|COMMON\"}}]},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[],\"sampledRequestsEnabled\":true,\"ruleActionOverrides\":[{\"name\":\"Rule1\",\"actionToUse\":{\"allow|block|count|captcha|challenge\":{}}},{\"name\":\"Rule2\",\"actionToUse\":{\"allow|block|count|captcha|challenge\":{}}}]}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"customRequestHandling\":null,\"customResponse\":null,\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":null,\"sampledRequestsEnabledForDefaultActions\":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
totrue
, 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
tofalse
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 theName
of the rule to override, andActionToUse
, 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
andChallenge
configs"{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"versionEnabled\":null,\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesAdminProtectionRuleSet\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[],\"sampledRequestsEnabled\":true}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"customRequestHandling\":null,\"customResponse\":null,\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":null,\"sampledRequestsEnabledForDefaultActions\":true,\"captchaConfig\":{\"immunityTimeProperty\":{\"immunityTime\":500}},\"challengeConfig\":{\"immunityTimeProperty\":{\"immunityTime\":800}},\"tokenDomains\":[\"google.com\",\"amazon.com\"],\"associationConfig\":{\"requestBody\":{\"CLOUDFRONT\":{\"defaultSizeInspectionLimit\":\"KB_16\"}}}}"
-
CAPTCHA
andChallenge
configs - If you update the policy's values forassociationConfig
,captchaConfig
,challengeConfig
, ortokenDomains
, Firewall Manager will overwrite your local web ACLs to contain the new value(s). However, if you don't update the policy'sassociationConfig
,captchaConfig
,challengeConfig
, ortokenDomains
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"{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"versionEnabled\":true,\"version\":\"Version_2.0\",\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesCommonRuleSet\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[{\"name\":\"NoUserAgent_HEADER\"}]}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":{\"logDestinationConfigs\":[\"arn:aws:firehose:us-west-2:12345678912:deliverystream/aws-waf-logs-fms-admin-destination\"],\"redactedFields\":[{\"redactedFieldType\":\"SingleHeader\",\"redactedFieldValue\":\"Cookies\"},{\"redactedFieldType\":\"Method\"}]}}"
To use a specific version of a WAF managed rule group in your Firewall Manager policy, you must set
versionEnabled
totrue
, and setversion
to the version you'd like to use. If you don't setversionEnabled
totrue
, or if you omitversionEnabled
, 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\"},\"managedRuleGroupIdentifier\": {\"versionEnabled\":null,\"version\":null,\"vendorName\":\"AWS\", \"managedRuleGroupName\":\"AWSManagedRulesAdminProtectionRuleSet\"} ,\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[], \"sampledRequestsEnabled\":true}],\"postProcessRuleGroups\":[], \"defaultAction\":{\"type\":\"ALLOW\"},\"customRequestHandling\" :null,\"customResponse\":null,\"overrideCustomerWebACLAssociation\" :false,\"loggingConfiguration\":{\"logDestinationConfigs\": [\"arn:aws:s3:::aws-waf-logs-example-bucket\"] ,\"redactedFields\":[],\"loggingFilterConfigs\":{\"defaultBehavior\":\"KEEP\", \"filters\":[{\"behavior\":\"KEEP\",\"requirement\":\"MEETS_ALL\", \"conditions\":[{\"actionCondition\":\"CAPTCHA\"},{\"actionCondition\": \"CHALLENGE\"}, {\"actionCondition\":\"EXCLUDED_AS_COUNT\"}]}]}},\"sampledRequestsEnabledForDefaultActions\":true}"
Firewall Manager supports Amazon Kinesis Data Firehose and Amazon S3 as the
logDestinationConfigs
in yourloggingConfiguration
. For information about WAF logging configurations, see LoggingConfiguration in the WAF API ReferenceIn the
loggingConfiguration
, you can specify onelogDestinationConfigs
. Optionally provide as many as 20redactedFields
. TheRedactedFieldType
must be one ofURI
,QUERY_STRING
,HEADER
, orMETHOD
. -
Example:
WAF Classic
"{\"type\": \"WAF\", \"ruleGroups\": [{\"id\":\"12345678-1bcd-9012-efga-0987654321ab\", \"overrideAction\" : {\"type\": \"COUNT\"}}], \"defaultAction\": {\"type\": \"BLOCK\"}}"
-
PolicyOption
— (map
)Contains the settings to configure a network ACL policy, a Network Firewall firewall policy deployment model, or a third-party firewall policy.
NetworkFirewallPolicy
— (map
)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
Possible values include:NULL
."CENTRALIZED"
"DISTRIBUTED"
ThirdPartyFirewallPolicy
— (map
)Defines the policy options for a third-party firewall policy.
FirewallDeploymentModel
— (String
)Defines the deployment model to use for the third-party firewall policy.
Possible values include:"CENTRALIZED"
"DISTRIBUTED"
NetworkAclCommonPolicy
— (map
)Defines a Firewall Manager network ACL policy.
NetworkAclEntrySet
— required — (map
)The definition of the first and last rules for the network ACL policy.
FirstEntries
— (Array<map>
)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.
IcmpTypeCode
— (map
)ICMP protocol: The ICMP type and code.
Code
— (Integer
)ICMP code.
Type
— (Integer
)ICMP type.
Protocol
— required — (String
)The protocol number. A value of "-1" means all protocols.
PortRange
— (map
)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
— required — (String
)Indicates whether to allow or deny the traffic that matches the rule.
Possible values include:"allow"
"deny"
Egress
— required — (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
— required — (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
— (Array<map>
)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.
IcmpTypeCode
— (map
)ICMP protocol: The ICMP type and code.
Code
— (Integer
)ICMP code.
Type
— (Integer
)ICMP type.
Protocol
— required — (String
)The protocol number. A value of "-1" means all protocols.
PortRange
— (map
)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
— required — (String
)Indicates whether to allow or deny the traffic that matches the rule.
Possible values include:"allow"
"deny"
Egress
— required — (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
— required — (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
— required — (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 aResourceTypeList
.The following are valid resource types for each Firewall Manager policy type:
-
Amazon Web Services WAF Classic -
AWS::ApiGateway::Stage
,AWS::CloudFront::Distribution
, andAWS::ElasticLoadBalancingV2::LoadBalancer
. -
WAF -
AWS::ApiGateway::Stage
,AWS::ElasticLoadBalancingV2::LoadBalancer
, andAWS::CloudFront::Distribution
. -
Shield Advanced -
AWS::ElasticLoadBalancingV2::LoadBalancer
,AWS::ElasticLoadBalancing::LoadBalancer
,AWS::EC2::EIP
, andAWS::CloudFront::Distribution
. -
Network ACL -
AWS::EC2::Subnet
. -
Security group usage audit -
AWS::EC2::SecurityGroup
. -
Security group content audit -
AWS::EC2::SecurityGroup
,AWS::EC2::NetworkInterface
, andAWS::EC2::Instance
. -
DNS Firewall, Network Firewall, and third-party firewall -
AWS::EC2::VPC
.
-
ResourceTypeList
— (Array<String>
)An array of
ResourceType
objects. Use this only to specify multiple resource types. To specify a single resource type, useResourceType
.ResourceTags
— (Array<map>
)An array of
ResourceTag
objects.Key
— required — (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
— required — (Boolean
)If set to
True
, resources with the tags that are specified in theResourceTag
array are not in scope of the policy. If set toFalse
, and theResourceTag
array is not null, only resources with the specified tags are in scope of the policy.RemediationEnabled
— required — (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
— (map<Array<String>>
)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 theIncludeMap
, and does not evaluate anyExcludeMap
specifications. If you do not specify anIncludeMap
, then Firewall Manager applies the policy to all accounts except for those specified by theExcludeMap
.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”]}
.
-
ExcludeMap
— (map<Array<String>>
)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 theIncludeMap
, and does not evaluate anyExcludeMap
specifications. If you do not specify anIncludeMap
, then Firewall Manager applies the policy to all accounts except for those specified by theExcludeMap
.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”]}
.
-
ResourceSetIds
— (Array<String>
)The unique identifiers of the resource sets used by the policy.
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.
"ACTIVE"
"OUT_OF_ADMIN_SCOPE"
-
PolicyArn
— (String
)The Amazon Resource Name (ARN) of the specified policy.
-
(AWS.Response)
—
Returns:
getProtectionStatus(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the getProtectionStatus operation
var params = {
PolicyId: 'STRING_VALUE', /* required */
EndTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
MaxResults: 'NUMBER_VALUE',
MemberAccountId: 'STRING_VALUE',
NextToken: 'STRING_VALUE',
StartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
};
fms.getProtectionStatus(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
PolicyId
— (String
)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
— (Date
)The start of the time period to query for the attacks. This is a
timestamp
type. The request syntax listing indicates anumber
type because the default used by Firewall Manager is Unix time in seconds. However, any validtimestamp
format is allowed.EndTime
— (Date
)The end of the time period to query for the attacks. This is a
timestamp
type. The request syntax listing indicates anumber
type because the default used by Firewall Manager is Unix time in seconds. However, any validtimestamp
format is allowed.NextToken
— (String
)If you specify a value for
MaxResults
and you have more objects than the number that you specify forMaxResults
, Firewall Manager returns aNextToken
value in the response, which you can use to retrieve another group of objects. For the second and subsequentGetProtectionStatus
requests, specify the value ofNextToken
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 aNextToken
value that you can use to get another batch of objects.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties: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
Possible values include:SHIELD_ADVANCED
."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
)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 aNextToken
value. To list more objects, submit anotherGetProtectionStatus
request, and specify theNextToken
value from the response in theNextToken
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 byGetProtectionStatus
. You must submit subsequent requests withNextToken
using your own processes.
-
(AWS.Response)
—
Returns:
getProtocolsList(params = {}, callback) ⇒ AWS.Request
Returns information about the specified Firewall Manager protocols list.
Service Reference:
Examples:
Calling the getProtocolsList operation
var params = {
ListId: 'STRING_VALUE', /* required */
DefaultList: true || false
};
fms.getProtocolsList(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ListId
— (String
)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ProtocolsList
— (map
)Information about the specified Firewall Manager protocols list.
ListId
— (String
)The ID of the Firewall Manager protocols list.
ListName
— required — (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
— (Date
)The time that the Firewall Manager protocols list was created.
LastUpdateTime
— (Date
)The time that the Firewall Manager protocols list was last updated.
ProtocolsList
— required — (Array<String>
)An array of protocols in the Firewall Manager protocols list.
PreviousProtocolsList
— (map<Array<String>>
)A map of previous version numbers to their corresponding protocol arrays.
ProtocolsListArn
— (String
)The Amazon Resource Name (ARN) of the specified protocols list.
-
(AWS.Response)
—
Returns:
getResourceSet(params = {}, callback) ⇒ AWS.Request
Gets information about a specific resource set.
Service Reference:
Examples:
Calling the getResourceSet operation
var params = {
Identifier: 'STRING_VALUE' /* required */
};
fms.getResourceSet(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
Identifier
— (String
)A unique identifier for the resource set, used in a request to refer to the resource set.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ResourceSet
— (map
)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
— required — (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
— required — (Array<String>
)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.
LastUpdateTime
— (Date
)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.
"ACTIVE"
"OUT_OF_ADMIN_SCOPE"
-
ResourceSetArn
— (String
)The Amazon Resource Name (ARN) of the resource set.
-
(AWS.Response)
—
Returns:
getThirdPartyFirewallAssociationStatus(params = {}, callback) ⇒ AWS.Request
The onboarding status of a Firewall Manager admin account to third-party firewall vendor tenant.
Service Reference:
Examples:
Calling the getThirdPartyFirewallAssociationStatus operation
var params = {
ThirdPartyFirewall: PALO_ALTO_NETWORKS_CLOUD_NGFW | FORTIGATE_CLOUD_NATIVE_FIREWALL /* required */
};
fms.getThirdPartyFirewallAssociationStatus(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ThirdPartyFirewall
— (String
)The name of the third-party firewall vendor.
Possible values include:"PALO_ALTO_NETWORKS_CLOUD_NGFW"
"FORTIGATE_CLOUD_NATIVE_FIREWALL"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties: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.
"ONBOARDING"
"ONBOARD_COMPLETE"
"OFFBOARDING"
"OFFBOARD_COMPLETE"
"NOT_EXIST"
-
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.
"NO_SUBSCRIPTION"
"NOT_COMPLETE"
"COMPLETE"
-
-
(AWS.Response)
—
Returns:
getViolationDetails(params = {}, callback) ⇒ AWS.Request
Retrieves violations for a resource based on the specified Firewall Manager policy and Amazon Web Services account.
Service Reference:
Examples:
Calling the getViolationDetails operation
var params = {
MemberAccount: 'STRING_VALUE', /* required */
PolicyId: 'STRING_VALUE', /* required */
ResourceId: 'STRING_VALUE', /* required */
ResourceType: 'STRING_VALUE' /* required */
};
fms.getViolationDetails(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
PolicyId
— (String
)The ID of the Firewall Manager policy that you want the details for. You can get violation details for the following policy types:
-
DNS Firewall
-
Imported Network Firewall
-
Network Firewall
-
Security group content audit
-
Network ACL
-
Third-party firewall
-
MemberAccount
— (String
)The Amazon Web Services account ID that you want the details for.
ResourceId
— (String
)The ID of the resource that has violations.
ResourceType
— (String
)The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. Supported resource types are:
AWS::EC2::Instance
,AWS::EC2::NetworkInterface
,AWS::EC2::SecurityGroup
,AWS::NetworkFirewall::FirewallPolicy
, andAWS::EC2::Subnet
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ViolationDetail
— (map
)Violation detail for a resource.
PolicyId
— required — (String
)The ID of the Firewall Manager policy that the violation details were requested for.
MemberAccount
— required — (String
)The Amazon Web Services account that the violation details were requested for.
ResourceId
— required — (String
)The resource ID that the violation details were requested for.
ResourceType
— required — (String
)The resource type that the violation details were requested for.
ResourceViolations
— required — (Array<map>
)List of violations for the requested resource.
AwsVPCSecurityGroupViolation
— (map
)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
— (Array<map>
)List of rules specified in the security group of the Firewall Manager policy that partially match the
ViolationTarget
rule.Reference
— (String
)The reference rule from the primary security group of the Firewall Manager policy.
TargetViolationReasons
— (Array<String>
)The violation reason.
PossibleSecurityGroupRemediationActions
— (Array<map>
)Remediation options for the rule specified in the
ViolationTarget
.RemediationActionType
— (String
)The remediation action that will be performed.
Possible values include:"REMOVE"
"MODIFY"
Description
— (String
)Brief description of the action that will be performed.
RemediationResult
— (map
)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
— (map
)Violation detail for a network interface.
ViolationTarget
— (String
)The resource ID of the network interface.
ViolatingSecurityGroups
— (Array<String>
)List of security groups that violate the rules specified in the primary security group of the Firewall Manager policy.
AwsEc2InstanceViolation
— (map
)Violation detail for an EC2 instance.
ViolationTarget
— (String
)The resource ID of the EC2 instance.
AwsEc2NetworkInterfaceViolations
— (Array<map>
)Violation detail for network interfaces associated with the EC2 instance.
ViolationTarget
— (String
)The resource ID of the network interface.
ViolatingSecurityGroups
— (Array<String>
)List of security groups that violate the rules specified in the primary security group of the Firewall Manager policy.
NetworkFirewallMissingFirewallViolation
— (map
)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
— (map
)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
— (map
)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
— (map
)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
— (map
)The policy that's currently in use in the individual account.
StatelessRuleGroups
— (Array<map>
)The stateless rule groups that are used in the Network Firewall firewall policy.
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
— (Array<String>
)The actions to take on packets that don't match any of the stateless rule groups.
StatelessFragmentDefaultActions
— (Array<String>
)The actions to take on packet fragments that don't match any of the stateless rule groups.
StatelessCustomActions
— (Array<String>
)Names of custom actions that are available for use in the stateless default actions settings.
StatefulRuleGroups
— (Array<map>
)The stateful rule groups that are used in the Network Firewall firewall policy.
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
— (map
)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
Possible values include:DROP
toALERT
. This only applies to managed rule groups."DROP_TO_ALERT"
StatefulDefaultActions
— (Array<String>
)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
-
StatefulEngineOptions
— (map
)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:
Possible values include:DEFAULT_ACTION_ORDER
"STRICT_ORDER"
"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 aflow:stateless
rule would still match, and so would theaws: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:
Possible values include:FMS_IGNORE
"DROP"
"CONTINUE"
"REJECT"
"FMS_IGNORE"
-
ExpectedPolicyDescription
— (map
)The policy that should be in use in the individual account in order to be compliant.
StatelessRuleGroups
— (Array<map>
)The stateless rule groups that are used in the Network Firewall firewall policy.
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
— (Array<String>
)The actions to take on packets that don't match any of the stateless rule groups.
StatelessFragmentDefaultActions
— (Array<String>
)The actions to take on packet fragments that don't match any of the stateless rule groups.
StatelessCustomActions
— (Array<String>
)Names of custom actions that are available for use in the stateless default actions settings.
StatefulRuleGroups
— (Array<map>
)The stateful rule groups that are used in the Network Firewall firewall policy.
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
— (map
)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
Possible values include:DROP
toALERT
. This only applies to managed rule groups."DROP_TO_ALERT"
StatefulDefaultActions
— (Array<String>
)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
-
StatefulEngineOptions
— (map
)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:
Possible values include:DEFAULT_ACTION_ORDER
"STRICT_ORDER"
"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 aflow:stateless
rule would still match, and so would theaws: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:
Possible values include:FMS_IGNORE
"DROP"
"CONTINUE"
"REJECT"
"FMS_IGNORE"
-
NetworkFirewallInternetTrafficNotInspectedViolation
— (map
)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
— (Array<map>
)The route or routes that are in violation.
DestinationType
— (String
)The type of destination for the route.
Possible values include:"IPV4"
"IPV6"
"PREFIX_LIST"
TargetType
— (String
)The type of target for the route.
Possible values include:"GATEWAY"
"CARRIER_GATEWAY"
"INSTANCE"
"LOCAL_GATEWAY"
"NAT_GATEWAY"
"NETWORK_INTERFACE"
"VPC_ENDPOINT"
"VPC_PEERING_CONNECTION"
"EGRESS_ONLY_INTERNET_GATEWAY"
"TRANSIT_GATEWAY"
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
— (Array<map>
)The firewall subnet routes that are expected.
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
— (Array<String>
)Information about the contributing subnets.
AllowedTargets
— (Array<String>
)Information about the allowed targets.
RouteTableId
— (String
)Information about the route table ID.
ActualFirewallSubnetRoutes
— (Array<map>
)The actual firewall subnet routes.
DestinationType
— (String
)The type of destination for the route.
Possible values include:"IPV4"
"IPV6"
"PREFIX_LIST"
TargetType
— (String
)The type of target for the route.
Possible values include:"GATEWAY"
"CARRIER_GATEWAY"
"INSTANCE"
"LOCAL_GATEWAY"
"NAT_GATEWAY"
"NETWORK_INTERFACE"
"VPC_ENDPOINT"
"VPC_PEERING_CONNECTION"
"EGRESS_ONLY_INTERNET_GATEWAY"
"TRANSIT_GATEWAY"
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
— (Array<map>
)The internet gateway routes that are expected.
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
— (Array<String>
)Information about the contributing subnets.
AllowedTargets
— (Array<String>
)Information about the allowed targets.
RouteTableId
— (String
)Information about the route table ID.
ActualInternetGatewayRoutes
— (Array<map>
)The actual internet gateway routes.
DestinationType
— (String
)The type of destination for the route.
Possible values include:"IPV4"
"IPV6"
"PREFIX_LIST"
TargetType
— (String
)The type of target for the route.
Possible values include:"GATEWAY"
"CARRIER_GATEWAY"
"INSTANCE"
"LOCAL_GATEWAY"
"NAT_GATEWAY"
"NETWORK_INTERFACE"
"VPC_ENDPOINT"
"VPC_PEERING_CONNECTION"
"EGRESS_ONLY_INTERNET_GATEWAY"
"TRANSIT_GATEWAY"
Destination
— (String
)The destination of the route.
Target
— (String
)The route's target.
VpcId
— (String
)Information about the VPC ID.
NetworkFirewallInvalidRouteConfigurationViolation
— (map
)The route configuration is invalid.
AffectedSubnets
— (Array<String>
)The subnets that are affected.
RouteTableId
— (String
)The route table ID.
IsRouteTableUsedInDifferentAZ
— (Boolean
)Information about whether the route table is used in another Availability Zone.
ViolatingRoute
— (map
)The route that's in violation.
DestinationType
— (String
)The type of destination for the route.
Possible values include:"IPV4"
"IPV6"
"PREFIX_LIST"
TargetType
— (String
)The type of target for the route.
Possible values include:"GATEWAY"
"CARRIER_GATEWAY"
"INSTANCE"
"LOCAL_GATEWAY"
"NAT_GATEWAY"
"NETWORK_INTERFACE"
"VPC_ENDPOINT"
"VPC_PEERING_CONNECTION"
"EGRESS_ONLY_INTERNET_GATEWAY"
"TRANSIT_GATEWAY"
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
— (Array<map>
)The firewall subnet routes that are expected.
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
— (Array<String>
)Information about the contributing subnets.
AllowedTargets
— (Array<String>
)Information about the allowed targets.
RouteTableId
— (String
)Information about the route table ID.
ActualFirewallSubnetRoutes
— (Array<map>
)The actual firewall subnet routes that are expected.
DestinationType
— (String
)The type of destination for the route.
Possible values include:"IPV4"
"IPV6"
"PREFIX_LIST"
TargetType
— (String
)The type of target for the route.
Possible values include:"GATEWAY"
"CARRIER_GATEWAY"
"INSTANCE"
"LOCAL_GATEWAY"
"NAT_GATEWAY"
"NETWORK_INTERFACE"
"VPC_ENDPOINT"
"VPC_PEERING_CONNECTION"
"EGRESS_ONLY_INTERNET_GATEWAY"
"TRANSIT_GATEWAY"
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
— (Array<map>
)The expected routes for the internet gateway.
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
— (Array<String>
)Information about the contributing subnets.
AllowedTargets
— (Array<String>
)Information about the allowed targets.
RouteTableId
— (String
)Information about the route table ID.
ActualInternetGatewayRoutes
— (Array<map>
)The actual internet gateway routes.
DestinationType
— (String
)The type of destination for the route.
Possible values include:"IPV4"
"IPV6"
"PREFIX_LIST"
TargetType
— (String
)The type of target for the route.
Possible values include:"GATEWAY"
"CARRIER_GATEWAY"
"INSTANCE"
"LOCAL_GATEWAY"
"NAT_GATEWAY"
"NETWORK_INTERFACE"
"VPC_ENDPOINT"
"VPC_PEERING_CONNECTION"
"EGRESS_ONLY_INTERNET_GATEWAY"
"TRANSIT_GATEWAY"
Destination
— (String
)The destination of the route.
Target
— (String
)The route's target.
VpcId
— (String
)Information about the VPC ID.
NetworkFirewallBlackHoleRouteDetectedViolation
— (map
)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
— (Array<map>
)Information about the route or routes that are in violation.
DestinationType
— (String
)The type of destination for the route.
Possible values include:"IPV4"
"IPV6"
"PREFIX_LIST"
TargetType
— (String
)The type of target for the route.
Possible values include:"GATEWAY"
"CARRIER_GATEWAY"
"INSTANCE"
"LOCAL_GATEWAY"
"NAT_GATEWAY"
"NETWORK_INTERFACE"
"VPC_ENDPOINT"
"VPC_PEERING_CONNECTION"
"EGRESS_ONLY_INTERNET_GATEWAY"
"TRANSIT_GATEWAY"
Destination
— (String
)The destination of the route.
Target
— (String
)The route's target.
NetworkFirewallUnexpectedFirewallRoutesViolation
— (map
)There's an unexpected firewall route.
FirewallSubnetId
— (String
)The subnet ID for the firewall.
ViolatingRoutes
— (Array<map>
)The routes that are in violation.
DestinationType
— (String
)The type of destination for the route.
Possible values include:"IPV4"
"IPV6"
"PREFIX_LIST"
TargetType
— (String
)The type of target for the route.
Possible values include:"GATEWAY"
"CARRIER_GATEWAY"
"INSTANCE"
"LOCAL_GATEWAY"
"NAT_GATEWAY"
"NETWORK_INTERFACE"
"VPC_ENDPOINT"
"VPC_PEERING_CONNECTION"
"EGRESS_ONLY_INTERNET_GATEWAY"
"TRANSIT_GATEWAY"
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
— (map
)There's an unexpected gateway route.
GatewayId
— (String
)Information about the gateway ID.
ViolatingRoutes
— (Array<map>
)The routes that are in violation.
DestinationType
— (String
)The type of destination for the route.
Possible values include:"IPV4"
"IPV6"
"PREFIX_LIST"
TargetType
— (String
)The type of target for the route.
Possible values include:"GATEWAY"
"CARRIER_GATEWAY"
"INSTANCE"
"LOCAL_GATEWAY"
"NAT_GATEWAY"
"NETWORK_INTERFACE"
"VPC_ENDPOINT"
"VPC_PEERING_CONNECTION"
"EGRESS_ONLY_INTERNET_GATEWAY"
"TRANSIT_GATEWAY"
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
— (map
)Expected routes are missing from Network Firewall.
ViolationTarget
— (String
)The target of the violation.
ExpectedRoutes
— (Array<map>
)The expected routes.
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
— (Array<String>
)Information about the contributing subnets.
AllowedTargets
— (Array<String>
)Information about the allowed targets.
RouteTableId
— (String
)Information about the route table ID.
VpcId
— (String
)Information about the VPC ID.
DnsRuleGroupPriorityConflictViolation
— (map
)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
— (Array<Integer>
)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.
DnsDuplicateRuleGroupViolation
— (map
)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
— (map
)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
— (map
)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
— (map
)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
— (Array<map>
)The list of routes that violate the route table.
DestinationType
— (String
)The type of destination for the route.
Possible values include:"IPV4"
"IPV6"
"PREFIX_LIST"
TargetType
— (String
)The type of target for the route.
Possible values include:"GATEWAY"
"CARRIER_GATEWAY"
"INSTANCE"
"LOCAL_GATEWAY"
"NAT_GATEWAY"
"NETWORK_INTERFACE"
"VPC_ENDPOINT"
"VPC_PEERING_CONNECTION"
"EGRESS_ONLY_INTERNET_GATEWAY"
"TRANSIT_GATEWAY"
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
— (Array<map>
)The list of firewall subnet routes.
DestinationType
— (String
)The type of destination for the route.
Possible values include:"IPV4"
"IPV6"
"PREFIX_LIST"
TargetType
— (String
)The type of target for the route.
Possible values include:"GATEWAY"
"CARRIER_GATEWAY"
"INSTANCE"
"LOCAL_GATEWAY"
"NAT_GATEWAY"
"NETWORK_INTERFACE"
"VPC_ENDPOINT"
"VPC_PEERING_CONNECTION"
"EGRESS_ONLY_INTERNET_GATEWAY"
"TRANSIT_GATEWAY"
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
— (Array<map>
)The routes in the route table associated with the Internet Gateway.
DestinationType
— (String
)The type of destination for the route.
Possible values include:"IPV4"
"IPV6"
"PREFIX_LIST"
TargetType
— (String
)The type of target for the route.
Possible values include:"GATEWAY"
"CARRIER_GATEWAY"
"INSTANCE"
"LOCAL_GATEWAY"
"NAT_GATEWAY"
"NETWORK_INTERFACE"
"VPC_ENDPOINT"
"VPC_PEERING_CONNECTION"
"EGRESS_ONLY_INTERNET_GATEWAY"
"TRANSIT_GATEWAY"
Destination
— (String
)The destination of the route.
Target
— (String
)The route's target.
ThirdPartyFirewallMissingFirewallViolation
— (map
)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
— (map
)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.
ThirdPartyFirewallMissingExpectedRouteTableViolation
— (map
)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
— (map
)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
— (map
)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
— (Array<map>
)Detailed information about the entry violations in the network ACL.
ExpectedEntry
— (map
)The Firewall Manager-managed network ACL entry that is involved in the entry violation.
EntryDetail
— (map
)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
— (map
)ICMP protocol: The ICMP type and code.
Code
— (Integer
)ICMP code.
Type
— (Integer
)ICMP type.
Protocol
— required — (String
)The protocol number. A value of "-1" means all protocols.
PortRange
— (map
)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
— required — (String
)Indicates whether to allow or deny the traffic that matches the rule.
Possible values include:"allow"
"deny"
Egress
— required — (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.
Possible values include:"FMS_MANAGED_FIRST_ENTRY"
"FMS_MANAGED_LAST_ENTRY"
"CUSTOM_ENTRY"
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
— (map
)The entry that's currently in the
ExpectedEvaluationOrder
location, in place of the expected entry.EntryDetail
— (map
)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
— (map
)ICMP protocol: The ICMP type and code.
Code
— (Integer
)ICMP code.
Type
— (Integer
)ICMP type.
Protocol
— required — (String
)The protocol number. A value of "-1" means all protocols.
PortRange
— (map
)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
— required — (String
)Indicates whether to allow or deny the traffic that matches the rule.
Possible values include:"allow"
"deny"
Egress
— required — (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.
Possible values include:"FMS_MANAGED_FIRST_ENTRY"
"FMS_MANAGED_LAST_ENTRY"
"CUSTOM_ENTRY"
EntriesWithConflicts
— (Array<map>
)The list of entries that are in conflict with
ExpectedEntry
.EntryDetail
— (map
)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
— (map
)ICMP protocol: The ICMP type and code.
Code
— (Integer
)ICMP code.
Type
— (Integer
)ICMP type.
Protocol
— required — (String
)The protocol number. A value of "-1" means all protocols.
PortRange
— (map
)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
— required — (String
)Indicates whether to allow or deny the traffic that matches the rule.
Possible values include:"allow"
"deny"
Egress
— required — (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.
Possible values include:"FMS_MANAGED_FIRST_ENTRY"
"FMS_MANAGED_LAST_ENTRY"
"CUSTOM_ENTRY"
EntryViolationReasons
— (Array<String>
)Descriptions of the violations that Firewall Manager found for these entries.
PossibleRemediationActions
— (map
)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
— (Array<map>
)Information about the actions.
Description
— (String
)A description of the list of remediation actions.
OrderedRemediationActions
— required — (Array<map>
)The ordered list of remediation actions.
RemediationAction
— (map
)Information about an action you can take to remediate a violation.
Description
— (String
)A description of a remediation action.
EC2CreateRouteAction
— (map
)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
— (map
)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
— (map
)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
— required — (map
)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
— (map
)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
— (map
)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
— required — (map
)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
— (map
)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
— required — (map
)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
— (map
)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
— required — (map
)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
— required — (map
)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
— (map
)Information about the ReplaceRouteTableAssociation action in the Amazon EC2 API.
Description
— (String
)A description of the ReplaceRouteTableAssociation action in Amazon EC2.
AssociationId
— required — (map
)Information about the association ID.
ResourceId
— (String
)The ID of the remediation target.
Description
— (String
)A description of the remediation action target.
RouteTableId
— required — (map
)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
— (map
)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
— required — (map
)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
— (map
)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
— (map
)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
— (map
)Information about the CreateRouteTable action in the Amazon EC2 API.
Description
— (String
)A description of the CreateRouteTable action.
VpcId
— required — (map
)Information about the ID of a VPC.
ResourceId
— (String
)The ID of the remediation target.
Description
— (String
)A description of the remediation action target.
FMSPolicyUpdateFirewallCreationConfigAction
— (map
)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
— (map
)Information about the
CreateNetworkAcl
action in Amazon EC2.Description
— (String
)Brief description of this remediation action.
Vpc
— (map
)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
— (map
)Information about the
ReplaceNetworkAclAssociation
action in Amazon EC2.Description
— (String
)Brief description of this remediation action.
AssociationId
— (map
)Describes a remediation action target.
ResourceId
— (String
)The ID of the remediation target.
Description
— (String
)A description of the remediation action target.
NetworkAclId
— (map
)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
— (map
)Information about the
CreateNetworkAclEntries
action in Amazon EC2.Description
— (String
)Brief description of this remediation action.
NetworkAclId
— (map
)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
— (Array<map>
)Lists the entries that the remediation action would create.
EntryDetail
— (map
)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
— (map
)ICMP protocol: The ICMP type and code.
Code
— (Integer
)ICMP code.
Type
— (Integer
)ICMP type.
Protocol
— required — (String
)The protocol number. A value of "-1" means all protocols.
PortRange
— (map
)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
— required — (String
)Indicates whether to allow or deny the traffic that matches the rule.
Possible values include:"allow"
"deny"
Egress
— required — (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.
Possible values include:"FMS_MANAGED_FIRST_ENTRY"
"FMS_MANAGED_LAST_ENTRY"
"CUSTOM_ENTRY"
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
— (map
)Information about the
DeleteNetworkAclEntries
action in Amazon EC2.Description
— (String
)Brief description of this remediation action.
NetworkAclId
— (map
)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
— (Array<map>
)Lists the entries that the remediation action would delete.
EntryDetail
— (map
)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
— (map
)ICMP protocol: The ICMP type and code.
Code
— (Integer
)ICMP code.
Type
— (Integer
)ICMP type.
Protocol
— required — (String
)The protocol number. A value of "-1" means all protocols.
PortRange
— (map
)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
— required — (String
)Indicates whether to allow or deny the traffic that matches the rule.
Possible values include:"allow"
"deny"
Egress
— required — (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.
Possible values include:"FMS_MANAGED_FIRST_ENTRY"
"FMS_MANAGED_LAST_ENTRY"
"CUSTOM_ENTRY"
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.
ResourceTags
— (Array<map>
)The
ResourceTag
objects associated with the resource.Key
— required — (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
— required — (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.
-
(AWS.Response)
—
Returns:
listAdminAccountsForOrganization(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the listAdminAccountsForOrganization operation
var params = {
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
fms.listAdminAccountsForOrganization(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults 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 aNextToken
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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:AdminAccounts
— (Array<map>
)A list of Firewall Manager administrator accounts within the organization that were onboarded as administrators by AssociateAdminAccount or PutAdminAccount.
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.
"ONBOARDING"
"ONBOARDING_COMPLETE"
"OFFBOARDING"
"OFFBOARDING_COMPLETE"
-
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 aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.
-
(AWS.Response)
—
Returns:
listAdminsManagingAccount(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the listAdminsManagingAccount operation
var params = {
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
fms.listAdminsManagingAccount(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults 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 aNextToken
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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:AdminAccounts
— (Array<String>
)The list of accounts who manage member accounts within their AdminScope.
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 aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.
-
(AWS.Response)
—
Returns:
listAppsLists(params = {}, callback) ⇒ AWS.Request
Returns an array of AppsListDataSummary
objects.
Service Reference:
Examples:
Calling the listAppsLists operation
var params = {
MaxResults: 'NUMBER_VALUE', /* required */
DefaultLists: true || false,
NextToken: 'STRING_VALUE'
};
fms.listAppsLists(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
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
)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:AppsLists
— (Array<map>
)An array of
AppsListDataSummary
objects.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
— (Array<map>
)An array of
App
objects in the Firewall Manager applications list.AppName
— required — (String
)The application's name.
Protocol
— required — (String
)The IP protocol name or number. The name can be one of
tcp
,udp
, oricmp
. For information on possible numbers, see Protocol Numbers.Port
— required — (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.
-
(AWS.Response)
—
Returns:
listComplianceStatus(params = {}, callback) ⇒ AWS.Request
Returns an array of PolicyComplianceStatus
objects. Use PolicyComplianceStatus
to get a summary of which member accounts are protected by the specified policy.
Service Reference:
Examples:
Calling the listComplianceStatus operation
var params = {
PolicyId: 'STRING_VALUE', /* required */
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
fms.listComplianceStatus(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
PolicyId
— (String
)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 morePolicyComplianceStatus
objects than the number that you specify forMaxResults
, Firewall Manager returns aNextToken
value in the response that allows you to list another group ofPolicyComplianceStatus
objects. For the second and subsequentListComplianceStatus
requests, specify the value ofNextToken
from the previous response to get information about another batch ofPolicyComplianceStatus
objects.MaxResults
— (Integer
)Specifies the number of
PolicyComplianceStatus
objects that you want Firewall Manager to return for this request. If you have morePolicyComplianceStatus
objects than the number that you specify forMaxResults
, the response includes aNextToken
value that you can use to get another batch ofPolicyComplianceStatus
objects.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:PolicyComplianceStatusList
— (Array<map>
)An array of
PolicyComplianceStatus
objects.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
— (Array<map>
)An array of
EvaluationResult
objects.ComplianceStatus
— (String
)Describes an Amazon Web Services account's compliance with the Firewall Manager policy.
Possible values include:"COMPLIANT"
"NON_COMPLIANT"
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
— (Date
)Timestamp of the last update to the
EvaluationResult
objects.IssueInfoMap
— (map<String>
)Details about problems with dependent services, such as WAF or Config, 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 forMaxResults
in the request, the response includes aNextToken
value. To list morePolicyComplianceStatus
objects, submit anotherListComplianceStatus
request, and specify theNextToken
value from the response in theNextToken
value in the next request.
-
(AWS.Response)
—
Returns:
listDiscoveredResources(params = {}, callback) ⇒ AWS.Request
Returns an array of resources in the organization's accounts that are available to be associated with a resource set.
Service Reference:
Examples:
Calling the listDiscoveredResources operation
var params = {
MemberAccountIds: [ /* required */
'STRING_VALUE',
/* more items */
],
ResourceType: 'STRING_VALUE', /* required */
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
fms.listDiscoveredResources(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
MemberAccountIds
— (Array<String>
)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.
ResourceType
— (String
)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 aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Items
— (Array<map>
)Details of the resources that were discovered.
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 aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.
-
(AWS.Response)
—
Returns:
listMemberAccounts(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the listMemberAccounts operation
var params = {
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
fms.listMemberAccounts(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
NextToken
— (String
)If you specify a value for
MaxResults
and you have more account IDs than the number that you specify forMaxResults
, Firewall Manager returns aNextToken
value in the response that allows you to list another group of IDs. For the second and subsequentListMemberAccountsRequest
requests, specify the value ofNextToken
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 aNextToken
value that you can use to get another batch of member account IDs.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:MemberAccounts
— (Array<String>
)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 aNextToken
value. To list more IDs, submit anotherListMemberAccounts
request, and specify theNextToken
value from the response in theNextToken
value in the next request.
-
(AWS.Response)
—
Returns:
listPolicies(params = {}, callback) ⇒ AWS.Request
Returns an array of PolicySummary
objects.
Service Reference:
Examples:
Calling the listPolicies operation
var params = {
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
fms.listPolicies(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
NextToken
— (String
)If you specify a value for
MaxResults
and you have morePolicySummary
objects than the number that you specify forMaxResults
, Firewall Manager returns aNextToken
value in the response that allows you to list another group ofPolicySummary
objects. For the second and subsequentListPolicies
requests, specify the value ofNextToken
from the previous response to get information about another batch ofPolicySummary
objects.MaxResults
— (Integer
)Specifies the number of
PolicySummary
objects that you want Firewall Manager to return for this request. If you have morePolicySummary
objects than the number that you specify forMaxResults
, the response includes aNextToken
value that you can use to get another batch ofPolicySummary
objects.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:PolicyList
— (Array<map>
)An array of
PolicySummary
objects.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.
Possible values include:"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
— (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.
"ACTIVE"
"OUT_OF_ADMIN_SCOPE"
-
NextToken
— (String
)If you have more
PolicySummary
objects than the number that you specified forMaxResults
in the request, the response includes aNextToken
value. To list morePolicySummary
objects, submit anotherListPolicies
request, and specify theNextToken
value from the response in theNextToken
value in the next request.
-
(AWS.Response)
—
Returns:
listProtocolsLists(params = {}, callback) ⇒ AWS.Request
Returns an array of ProtocolsListDataSummary
objects.
Service Reference:
Examples:
Calling the listProtocolsLists operation
var params = {
MaxResults: 'NUMBER_VALUE', /* required */
DefaultLists: true || false,
NextToken: 'STRING_VALUE'
};
fms.listProtocolsLists(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
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
)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ProtocolsLists
— (Array<map>
)An array of
ProtocolsListDataSummary
objects.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
— (Array<String>
)An array of protocols in the Firewall Manager protocols list.
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.
-
(AWS.Response)
—
Returns:
listResourceSetResources(params = {}, callback) ⇒ AWS.Request
Returns an array of resources that are currently associated to a resource set.
Service Reference:
Examples:
Calling the listResourceSetResources operation
var params = {
Identifier: 'STRING_VALUE', /* required */
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
fms.listResourceSetResources(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
Identifier
— (String
)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 aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Items
— (Array<map>
)An array of the associated resources' uniform resource identifiers (URI).
URI
— required — (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 aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.
-
(AWS.Response)
—
Returns:
listResourceSets(params = {}, callback) ⇒ AWS.Request
Returns an array of ResourceSetSummary
objects.
Service Reference:
Examples:
Calling the listResourceSets operation
var params = {
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
fms.listResourceSets(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults 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 aNextToken
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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ResourceSets
— (Array<map>
)An array of
ResourceSetSummary
objects.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
— (Date
)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.
"ACTIVE"
"OUT_OF_ADMIN_SCOPE"
-
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 aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.
-
(AWS.Response)
—
Returns:
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Retrieves the list of tags for the specified Amazon Web Services resource.
Service Reference:
Examples:
Calling the listTagsForResource operation
var params = {
ResourceArn: 'STRING_VALUE' /* required */
};
fms.listTagsForResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:TagList
— (Array<map>
)The tags associated with the resource.
Key
— required — (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
— required — (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.
-
(AWS.Response)
—
Returns:
listThirdPartyFirewallFirewallPolicies(params = {}, callback) ⇒ AWS.Request
Retrieves a list of all of the third-party firewall policies that are associated with the third-party firewall administrator's account.
Service Reference:
Examples:
Calling the listThirdPartyFirewallFirewallPolicies operation
var params = {
MaxResults: 'NUMBER_VALUE', /* required */
ThirdPartyFirewall: PALO_ALTO_NETWORKS_CLOUD_NGFW | FORTIGATE_CLOUD_NATIVE_FIREWALL, /* required */
NextToken: 'STRING_VALUE'
};
fms.listThirdPartyFirewallFirewallPolicies(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ThirdPartyFirewall
— (String
)The name of the third-party firewall vendor.
Possible values include:"PALO_ALTO_NETWORKS_CLOUD_NGFW"
"FORTIGATE_CLOUD_NATIVE_FIREWALL"
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 anotherListThirdPartyFirewallFirewallPoliciesRequest
request.For the value of
NextToken
, specify the value ofNextToken
from the previous response. If the previous response didn't include aNextToken
element, there are no more third-party firewall policies to get.MaxResults
— (Integer
)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 aNextToken
element.NextToken
contains an encrypted token that identifies the first third-party firewall policies that Firewall Manager will return if you submit another request.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ThirdPartyFirewallFirewallPolicies
— (Array<map>
)A list that contains one
ThirdPartyFirewallFirewallPolicies
element for each third-party firewall policies that the specified third-party firewall vendor is associated with. EachThirdPartyFirewallFirewallPolicies
element contains the firewall policy name and ID.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 nextListThirdPartyFirewallFirewallPolicies
request.
-
(AWS.Response)
—
Returns:
putAdminAccount(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the putAdminAccount operation
var params = {
AdminAccount: 'STRING_VALUE', /* required */
AdminScope: {
AccountScope: {
Accounts: [
'STRING_VALUE',
/* more items */
],
AllAccountsEnabled: true || false,
ExcludeSpecifiedAccounts: true || false
},
OrganizationalUnitScope: {
AllOrganizationalUnitsEnabled: true || false,
ExcludeSpecifiedOrganizationalUnits: true || false,
OrganizationalUnits: [
'STRING_VALUE',
/* more items */
]
},
PolicyTypeScope: {
AllPolicyTypesEnabled: true || false,
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,
/* more items */
]
},
RegionScope: {
AllRegionsEnabled: true || false,
Regions: [
'STRING_VALUE',
/* more items */
]
}
}
};
fms.putAdminAccount(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
AdminAccount
— (String
)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
— (map
)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
— (map
)Defines the accounts that the specified Firewall Manager administrator can apply policies to.
Accounts
— (Array<String>
)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
. IfExcludeSpecifiedAccounts
is set totrue
, then the Firewall Manager administrator can apply policies to all members of the organization except for the accounts in this list. IfExcludeSpecifiedAccounts
is set tofalse
, then the Firewall Manager administrator can only apply policies to the accounts in this list.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 inAccountScope$Accounts
. You can either specify a list of accounts to exclude byAccountScope$Accounts
, or you can enable management of all accounts byAccountScope$AllAccountsEnabled
. You cannot specify both.
OrganizationalUnitScope
— (map
)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
— (Array<String>
)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
OrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnits
. IfOrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnits
is set totrue
, then the Firewall Manager administrator can apply policies to all OUs in the organization except for the OUs in this list. IfOrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnits
is set tofalse
, then the Firewall Manager administrator can only apply policies to the OUs in this list.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 inOrganizationalUnitScope$OrganizationalUnits
. You can either specify a list of OUs to exclude byOrganizationalUnitScope$OrganizationalUnits
, or you can enable management of all OUs byOrganizationalUnitScope$AllOrganizationalUnitsEnabled
. You cannot specify both.
RegionScope
— (map
)Defines the Amazon Web Services Regions that the specified Firewall Manager administrator can perform actions in.
Regions
— (Array<String>
)The Amazon Web Services Regions that the specified Firewall Manager administrator can perform actions in.
AllRegionsEnabled
— (Boolean
)Allows the specified Firewall Manager administrator to manage all Amazon Web Services Regions.
PolicyTypeScope
— (map
)Defines the Firewall Manager policy types that the specified Firewall Manager administrator can create and manage.
PolicyTypes
— (Array<String>
)The list of policy types that the specified Firewall Manager administrator can manage.
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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
putAppsList(params = {}, callback) ⇒ AWS.Request
Creates an Firewall Manager applications list.
Service Reference:
Examples:
Calling the putAppsList operation
var params = {
AppsList: { /* required */
AppsList: [ /* required */
{
AppName: 'STRING_VALUE', /* required */
Port: 'NUMBER_VALUE', /* required */
Protocol: 'STRING_VALUE' /* required */
},
/* more items */
],
ListName: 'STRING_VALUE', /* required */
CreateTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
LastUpdateTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
ListId: 'STRING_VALUE',
ListUpdateToken: 'STRING_VALUE',
PreviousAppsList: {
'<PreviousListVersion>': [
{
AppName: 'STRING_VALUE', /* required */
Port: 'NUMBER_VALUE', /* required */
Protocol: 'STRING_VALUE' /* required */
},
/* more items */
],
/* '<PreviousListVersion>': ... */
}
},
TagList: [
{
Key: 'STRING_VALUE', /* required */
Value: 'STRING_VALUE' /* required */
},
/* more items */
]
};
fms.putAppsList(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
AppsList
— (map
)The details of the Firewall Manager applications list to be created.
ListId
— (String
)The ID of the Firewall Manager applications list.
ListName
— required — (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
— (Date
)The time that the Firewall Manager applications list was created.
LastUpdateTime
— (Date
)The time that the Firewall Manager applications list was last updated.
AppsList
— required — (Array<map>
)An array of applications in the Firewall Manager applications list.
AppName
— required — (String
)The application's name.
Protocol
— required — (String
)The IP protocol name or number. The name can be one of
tcp
,udp
, oricmp
. For information on possible numbers, see Protocol Numbers.Port
— required — (Integer
)The application's port number, for example
80
.
PreviousAppsList
— (map<Array<map>>
)A map of previous version numbers to their corresponding
App
object arrays.AppName
— required — (String
)The application's name.
Protocol
— required — (String
)The IP protocol name or number. The name can be one of
tcp
,udp
, oricmp
. For information on possible numbers, see Protocol Numbers.Port
— required — (Integer
)The application's port number, for example
80
.
TagList
— (Array<map>
)The tags associated with the resource.
Key
— required — (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
— required — (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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:AppsList
— (map
)The details of the Firewall Manager applications list.
ListId
— (String
)The ID of the Firewall Manager applications list.
ListName
— required — (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
— (Date
)The time that the Firewall Manager applications list was created.
LastUpdateTime
— (Date
)The time that the Firewall Manager applications list was last updated.
AppsList
— required — (Array<map>
)An array of applications in the Firewall Manager applications list.
AppName
— required — (String
)The application's name.
Protocol
— required — (String
)The IP protocol name or number. The name can be one of
tcp
,udp
, oricmp
. For information on possible numbers, see Protocol Numbers.Port
— required — (Integer
)The application's port number, for example
80
.
PreviousAppsList
— (map<Array<map>>
)A map of previous version numbers to their corresponding
App
object arrays.AppName
— required — (String
)The application's name.
Protocol
— required — (String
)The IP protocol name or number. The name can be one of
tcp
,udp
, oricmp
. For information on possible numbers, see Protocol Numbers.Port
— required — (Integer
)The application's port number, for example
80
.
AppsListArn
— (String
)The Amazon Resource Name (ARN) of the applications list.
-
(AWS.Response)
—
Returns:
putNotificationChannel(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the putNotificationChannel operation
var params = {
SnsRoleName: 'STRING_VALUE', /* required */
SnsTopicArn: 'STRING_VALUE' /* required */
};
fms.putNotificationChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
SnsTopicArn
— (String
)The Amazon Resource Name (ARN) of the SNS topic that collects notifications from Firewall Manager.
SnsRoleName
— (String
)The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to record Firewall Manager activity.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
putPolicy(params = {}, callback) ⇒ AWS.Request
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.
-
Service Reference:
Examples:
Calling the putPolicy operation
var params = {
Policy: { /* required */
ExcludeResourceTags: true || false, /* required */
PolicyName: 'STRING_VALUE', /* required */
RemediationEnabled: true || false, /* required */
ResourceType: 'STRING_VALUE', /* required */
SecurityServicePolicyData: { /* required */
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, /* required */
ManagedServiceData: 'STRING_VALUE',
PolicyOption: {
NetworkAclCommonPolicy: {
NetworkAclEntrySet: { /* required */
ForceRemediateForFirstEntries: true || false, /* required */
ForceRemediateForLastEntries: true || false, /* required */
FirstEntries: [
{
Egress: true || false, /* required */
Protocol: 'STRING_VALUE', /* required */
RuleAction: allow | deny, /* required */
CidrBlock: 'STRING_VALUE',
IcmpTypeCode: {
Code: 'NUMBER_VALUE',
Type: 'NUMBER_VALUE'
},
Ipv6CidrBlock: 'STRING_VALUE',
PortRange: {
From: 'NUMBER_VALUE',
To: 'NUMBER_VALUE'
}
},
/* more items */
],
LastEntries: [
{
Egress: true || false, /* required */
Protocol: 'STRING_VALUE', /* required */
RuleAction: allow | deny, /* required */
CidrBlock: 'STRING_VALUE',
IcmpTypeCode: {
Code: 'NUMBER_VALUE',
Type: 'NUMBER_VALUE'
},
Ipv6CidrBlock: 'STRING_VALUE',
PortRange: {
From: 'NUMBER_VALUE',
To: 'NUMBER_VALUE'
}
},
/* more items */
]
}
},
NetworkFirewallPolicy: {
FirewallDeploymentModel: CENTRALIZED | DISTRIBUTED
},
ThirdPartyFirewallPolicy: {
FirewallDeploymentModel: CENTRALIZED | DISTRIBUTED
}
}
},
DeleteUnusedFMManagedResources: true || false,
ExcludeMap: {
'<CustomerPolicyScopeIdType>': [
'STRING_VALUE',
/* more items */
],
/* '<CustomerPolicyScopeIdType>': ... */
},
IncludeMap: {
'<CustomerPolicyScopeIdType>': [
'STRING_VALUE',
/* more items */
],
/* '<CustomerPolicyScopeIdType>': ... */
},
PolicyDescription: 'STRING_VALUE',
PolicyId: 'STRING_VALUE',
PolicyStatus: ACTIVE | OUT_OF_ADMIN_SCOPE,
PolicyUpdateToken: 'STRING_VALUE',
ResourceSetIds: [
'STRING_VALUE',
/* more items */
],
ResourceTags: [
{
Key: 'STRING_VALUE', /* required */
Value: 'STRING_VALUE'
},
/* more items */
],
ResourceTypeList: [
'STRING_VALUE',
/* more items */
]
},
TagList: [
{
Key: 'STRING_VALUE', /* required */
Value: 'STRING_VALUE' /* required */
},
/* more items */
]
};
fms.putPolicy(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
Policy
— (map
)The details of the Firewall Manager policy to be created.
PolicyId
— (String
)The ID of the Firewall Manager policy.
PolicyName
— required — (String
)The name of the Firewall Manager policy.
PolicyUpdateToken
— (String
)A unique identifier for each update to the policy. When issuing a
PutPolicy
request, thePolicyUpdateToken
in the request must match thePolicyUpdateToken
of the current policy version. To get thePolicyUpdateToken
of the current policy version, use aGetPolicy
request.SecurityServicePolicyData
— required — (map
)Details about the security service that is being used to protect the resources.
Type
— required — (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.
Possible values include:"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
)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\":[{\"ruleGroupId\":\"rslvr-frg-2\",\"priority\":9911}]}"
Note: Valid values forpreProcessRuleGroups
are between 1 and 99. Valid values forpostProcessRuleGroups
are between 9901 and 10000. -
Example:
IMPORT_NETWORK_FIREWALL
"{\"type\":\"IMPORT_NETWORK_FIREWALL\",\"awsNetworkFirewallConfig\":{\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-west-2:000000000000:stateless-rulegroup\/rg1\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:drop\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:pass\"],\"networkFirewallStatelessCustomActions\":[],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-west-2:aws-managed:stateful-rulegroup\/ThreatSignaturesEmergingEventsStrictOrder\",\"priority\":8}],\"networkFirewallStatefulEngineOptions\":{\"ruleOrder\":\"STRICT_ORDER\"},\"networkFirewallStatefulDefaultActions\":[\"aws:drop_strict\"]}}"
"{\"type\":\"DNS_FIREWALL\",\"preProcessRuleGroups\":[{\"ruleGroupId\":\"rslvr-frg-1\",\"priority\":10}],\"postProcessRuleGroups\":[{\"ruleGroupId\":\"rslvr-frg-2\",\"priority\":9911}]}"
Note: Valid values forpreProcessRuleGroups
are between 1 and 99. Valid values forpostProcessRuleGroups
are between 9901 and 10000. -
Example:
NETWORK_FIREWALL
- Centralized deployment model"{\"type\":\"NETWORK_FIREWALL\",\"awsNetworkFirewallConfig\":{\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateless-rulegroup/test\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"customActionName\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"metricdimensionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateful-rulegroup/test\"}],\"networkFirewallLoggingConfiguration\":{\"logDestinationConfigs\":[{\"logDestinationType\":\"S3\",\"logType\":\"ALERT\",\"logDestination\":{\"bucketName\":\"s3-bucket-name\"}},{\"logDestinationType\":\"S3\",\"logType\":\"FLOW\",\"logDestination\":{\"bucketName\":\"s3-bucket-name\"}}],\"overrideExistingConfig\":true}},\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"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\",\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateless-rulegroup/test\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"customActionName\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"metricdimensionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateful-rulegroup/test\"}],\"networkFirewallOrchestrationConfig\":{\"singleFirewallEndpointPerVPC\":false,\"allowedIPV4CidrList\":[\"10.0.0.0/28\",\"192.168.0.0/28\"],\"routeManagementAction\":\"OFF\"},\"networkFirewallLoggingConfiguration\":{\"logDestinationConfigs\":[{\"logDestinationType\":\"S3\",\"logType\":\"ALERT\",\"logDestination\":{\"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\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"customActionName\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"metricdimensionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateful-rulegroup/test\"}],\"networkFirewallOrchestrationConfig\":{\"singleFirewallEndpointPerVPC\":false,\"allowedIPV4CidrList\":[\"10.0.0.0/28\",\"192.168.0.0/28\"],\"routeManagementAction\":\"MONITOR\",\"routeManagementTargetTypes\":[\"InternetGateway\"]},\"networkFirewallLoggingConfiguration\":{\"logDestinationConfigs\":[{\"logDestinationType\":\"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\",\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateless-rulegroup/test\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:forward_to_sfe\",\"fragmentcustomactionname\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"customActionName\", \"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"metricdimensionvalue\"}]}}},{\"actionName\":\"fragmentcustomactionname\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"fragmentmetricdimensionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateful-rulegroup/test\"}],\"networkFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{ \"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]},{\"availabilityZoneName\":\"us-east-1b\",\"allowedIPV4CidrList\":[ \"10.0.0.0/28\"]}]} },\"singleFirewallEndpointPerVPC\":false,\"allowedIPV4CidrList\":null,\"routeManagementAction\":\"OFF\",\"networkFirewallLoggingConfiguration\":{\"logDestinationConfigs\":[{\"logDestinationType\":\"S3\",\"logType\":\"ALERT\",\"logDestination\":{\"bucketName\":\"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 infirewallCreationConfig
, specify either theavailabilityZoneName
oravailabilityZoneId
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\",\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateless-rulegroup/test\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:forward_to_sfe\",\"fragmentcustomactionname\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"customActionName\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"metricdimensionvalue\"}]}}},{\"actionName\":\"fragmentcustomactionname\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"fragmentmetricdimensionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateful-rulegroup/test\"}],\"networkFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]},{\"availabilityZoneName\":\"us-east-1b\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"singleFirewallEndpointPerVPC\":false,\"allowedIPV4CidrList\":null,\"routeManagementAction\":\"MONITOR\",\"routeManagementTargetTypes\":[\"InternetGateway\"],\"routeManagementConfig\":{\"allowCrossAZTrafficIfNoEndpoint\":true}},\"networkFirewallLoggingConfiguration\":{\"logDestinationConfigs\":[{\"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\":\"SECURITY_GROUPS_COMMON\",\"revertManualSecurityGroupChanges\":false,\"exclusiveResourceSecurityGroupManagement\":false, \"applyToAllEC2InstanceENIs\":false,\"securityGroups\":[{\"id\":\" sg-000e55995d61a06bd\"}]}"
-
Example:
SECURITY_GROUPS_COMMON
- Security group tag distribution""{\"type\":\"SECURITY_GROUPS_COMMON\",\"securityGroups\":[{\"id\":\"sg-000e55995d61a06bd\"}],\"revertManualSecurityGroupChanges\":true,\"exclusiveResourceSecurityGroupManagement\":false,\"applyToAllEC2InstanceENIs\":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
totrue
, otherwise Firewall Manager won't be able to create the policy. When you enablerevertManualSecurityGroupChanges
, 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_COMMON\",\"revertManualSecurityGroupChanges\":false,\"exclusiveResourceSecurityGroupManagement\":false, \"applyToAllEC2InstanceENIs\":false,\"includeSharedVPC\":true,\"securityGroups\":[{\"id\":\" sg-000e55995d61a06bd\"}]}"
-
Example:
SECURITY_GROUPS_CONTENT_AUDIT
"{\"type\":\"SECURITY_GROUPS_CONTENT_AUDIT\",\"securityGroups\":[{\"id\":\"sg-000e55995d61a06bd\"}],\"securityGroupAction\":{\"type\":\"ALLOW\"}}"
The security group action for content audit can be
ALLOW
orDENY
. ForALLOW
, all in-scope security group rules must be within the allowed range of the policy's security group rules. ForDENY
, 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\",\"deleteUnusedSecurityGroups\":true,\"coalesceRedundantSecurityGroups\":true}"
-
Example:
SHIELD_ADVANCED
with web ACL management"{\"type\":\"SHIELD_ADVANCED\",\"optimizeUnassociatedWebACL\":true}"
If you set
optimizeUnassociatedWebACL
totrue
, 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
tofalse
, 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\": {\"automaticResponseStatus\":\"ENABLED|IGNORED|DISABLED\", \"automaticResponseAction\":\"BLOCK|COUNT\"}, \"overrideCustomerWebaclClassic\":true|false, \"optimizeUnassociatedWebACL\":true|false}"
For example:
"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": {\"automaticResponseStatus\":\"ENABLED\", \"automaticResponseAction\":\"COUNT\"}}"
The default value for
automaticResponseStatus
isIGNORED
. The value forautomaticResponseAction
is only required whenautomaticResponseStatus
is set toENABLED
. The default value foroverrideCustomerWebaclClassic
isfalse
.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,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"versionEnabled\":null,\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesATPRuleSet\",\"managedRuleGroupConfigs\":[{\"awsmanagedRulesATPRuleSet\":{\"loginPath\":\"/loginpath\",\"requestInspection\":{\"payloadType\":\"FORM_ENCODED|JSON\",\"usernameField\":{\"identifier\":\"/form/username\"},\"passwordField\":{\"identifier\":\"/form/password\"}}}}]},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[],\"sampledRequestsEnabled\":true},{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"versionEnabled\":null,\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesBotControlRuleSet\",\"managedRuleGroupConfigs\":[{\"awsmanagedRulesBotControlRuleSet\":{\"inspectionLevel\":\"TARGETED|COMMON\"}}]},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[],\"sampledRequestsEnabled\":true,\"ruleActionOverrides\":[{\"name\":\"Rule1\",\"actionToUse\":{\"allow|block|count|captcha|challenge\":{}}},{\"name\":\"Rule2\",\"actionToUse\":{\"allow|block|count|captcha|challenge\":{}}}]}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"customRequestHandling\":null,\"customResponse\":null,\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":null,\"sampledRequestsEnabledForDefaultActions\":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
totrue
, 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
tofalse
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 theName
of the rule to override, andActionToUse
, 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
andChallenge
configs"{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"versionEnabled\":null,\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesAdminProtectionRuleSet\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[],\"sampledRequestsEnabled\":true}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"customRequestHandling\":null,\"customResponse\":null,\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":null,\"sampledRequestsEnabledForDefaultActions\":true,\"captchaConfig\":{\"immunityTimeProperty\":{\"immunityTime\":500}},\"challengeConfig\":{\"immunityTimeProperty\":{\"immunityTime\":800}},\"tokenDomains\":[\"google.com\",\"amazon.com\"],\"associationConfig\":{\"requestBody\":{\"CLOUDFRONT\":{\"defaultSizeInspectionLimit\":\"KB_16\"}}}}"
-
CAPTCHA
andChallenge
configs - If you update the policy's values forassociationConfig
,captchaConfig
,challengeConfig
, ortokenDomains
, Firewall Manager will overwrite your local web ACLs to contain the new value(s). However, if you don't update the policy'sassociationConfig
,captchaConfig
,challengeConfig
, ortokenDomains
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"{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"versionEnabled\":true,\"version\":\"Version_2.0\",\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesCommonRuleSet\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[{\"name\":\"NoUserAgent_HEADER\"}]}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":{\"logDestinationConfigs\":[\"arn:aws:firehose:us-west-2:12345678912:deliverystream/aws-waf-logs-fms-admin-destination\"],\"redactedFields\":[{\"redactedFieldType\":\"SingleHeader\",\"redactedFieldValue\":\"Cookies\"},{\"redactedFieldType\":\"Method\"}]}}"
To use a specific version of a WAF managed rule group in your Firewall Manager policy, you must set
versionEnabled
totrue
, and setversion
to the version you'd like to use. If you don't setversionEnabled
totrue
, or if you omitversionEnabled
, 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\"},\"managedRuleGroupIdentifier\": {\"versionEnabled\":null,\"version\":null,\"vendorName\":\"AWS\", \"managedRuleGroupName\":\"AWSManagedRulesAdminProtectionRuleSet\"} ,\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[], \"sampledRequestsEnabled\":true}],\"postProcessRuleGroups\":[], \"defaultAction\":{\"type\":\"ALLOW\"},\"customRequestHandling\" :null,\"customResponse\":null,\"overrideCustomerWebACLAssociation\" :false,\"loggingConfiguration\":{\"logDestinationConfigs\": [\"arn:aws:s3:::aws-waf-logs-example-bucket\"] ,\"redactedFields\":[],\"loggingFilterConfigs\":{\"defaultBehavior\":\"KEEP\", \"filters\":[{\"behavior\":\"KEEP\",\"requirement\":\"MEETS_ALL\", \"conditions\":[{\"actionCondition\":\"CAPTCHA\"},{\"actionCondition\": \"CHALLENGE\"}, {\"actionCondition\":\"EXCLUDED_AS_COUNT\"}]}]}},\"sampledRequestsEnabledForDefaultActions\":true}"
Firewall Manager supports Amazon Kinesis Data Firehose and Amazon S3 as the
logDestinationConfigs
in yourloggingConfiguration
. For information about WAF logging configurations, see LoggingConfiguration in the WAF API ReferenceIn the
loggingConfiguration
, you can specify onelogDestinationConfigs
. Optionally provide as many as 20redactedFields
. TheRedactedFieldType
must be one ofURI
,QUERY_STRING
,HEADER
, orMETHOD
. -
Example:
WAF Classic
"{\"type\": \"WAF\", \"ruleGroups\": [{\"id\":\"12345678-1bcd-9012-efga-0987654321ab\", \"overrideAction\" : {\"type\": \"COUNT\"}}], \"defaultAction\": {\"type\": \"BLOCK\"}}"
-
PolicyOption
— (map
)Contains the settings to configure a network ACL policy, a Network Firewall firewall policy deployment model, or a third-party firewall policy.
NetworkFirewallPolicy
— (map
)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
Possible values include:NULL
."CENTRALIZED"
"DISTRIBUTED"
ThirdPartyFirewallPolicy
— (map
)Defines the policy options for a third-party firewall policy.
FirewallDeploymentModel
— (String
)Defines the deployment model to use for the third-party firewall policy.
Possible values include:"CENTRALIZED"
"DISTRIBUTED"
NetworkAclCommonPolicy
— (map
)Defines a Firewall Manager network ACL policy.
NetworkAclEntrySet
— required — (map
)The definition of the first and last rules for the network ACL policy.
FirstEntries
— (Array<map>
)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.
IcmpTypeCode
— (map
)ICMP protocol: The ICMP type and code.
Code
— (Integer
)ICMP code.
Type
— (Integer
)ICMP type.
Protocol
— required — (String
)The protocol number. A value of "-1" means all protocols.
PortRange
— (map
)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
— required — (String
)Indicates whether to allow or deny the traffic that matches the rule.
Possible values include:"allow"
"deny"
Egress
— required — (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
— required — (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
— (Array<map>
)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.
IcmpTypeCode
— (map
)ICMP protocol: The ICMP type and code.
Code
— (Integer
)ICMP code.
Type
— (Integer
)ICMP type.
Protocol
— required — (String
)The protocol number. A value of "-1" means all protocols.
PortRange
— (map
)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
— required — (String
)Indicates whether to allow or deny the traffic that matches the rule.
Possible values include:"allow"
"deny"
Egress
— required — (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
— required — (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
— required — (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 aResourceTypeList
.The following are valid resource types for each Firewall Manager policy type:
-
Amazon Web Services WAF Classic -
AWS::ApiGateway::Stage
,AWS::CloudFront::Distribution
, andAWS::ElasticLoadBalancingV2::LoadBalancer
. -
WAF -
AWS::ApiGateway::Stage
,AWS::ElasticLoadBalancingV2::LoadBalancer
, andAWS::CloudFront::Distribution
. -
Shield Advanced -
AWS::ElasticLoadBalancingV2::LoadBalancer
,AWS::ElasticLoadBalancing::LoadBalancer
,AWS::EC2::EIP
, andAWS::CloudFront::Distribution
. -
Network ACL -
AWS::EC2::Subnet
. -
Security group usage audit -
AWS::EC2::SecurityGroup
. -
Security group content audit -
AWS::EC2::SecurityGroup
,AWS::EC2::NetworkInterface
, andAWS::EC2::Instance
. -
DNS Firewall, Network Firewall, and third-party firewall -
AWS::EC2::VPC
.
-
ResourceTypeList
— (Array<String>
)An array of
ResourceType
objects. Use this only to specify multiple resource types. To specify a single resource type, useResourceType
.ResourceTags
— (Array<map>
)An array of
ResourceTag
objects.Key
— required — (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
— required — (Boolean
)If set to
True
, resources with the tags that are specified in theResourceTag
array are not in scope of the policy. If set toFalse
, and theResourceTag
array is not null, only resources with the specified tags are in scope of the policy.RemediationEnabled
— required — (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
— (map<Array<String>>
)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 theIncludeMap
, and does not evaluate anyExcludeMap
specifications. If you do not specify anIncludeMap
, then Firewall Manager applies the policy to all accounts except for those specified by theExcludeMap
.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”]}
.
-
ExcludeMap
— (map<Array<String>>
)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 theIncludeMap
, and does not evaluate anyExcludeMap
specifications. If you do not specify anIncludeMap
, then Firewall Manager applies the policy to all accounts except for those specified by theExcludeMap
.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”]}
.
-
ResourceSetIds
— (Array<String>
)The unique identifiers of the resource sets used by the policy.
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.
"ACTIVE"
"OUT_OF_ADMIN_SCOPE"
-
TagList
— (Array<map>
)The tags to add to the Amazon Web Services resource.
Key
— required — (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
— required — (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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Policy
— (map
)The details of the Firewall Manager policy.
PolicyId
— (String
)The ID of the Firewall Manager policy.
PolicyName
— required — (String
)The name of the Firewall Manager policy.
PolicyUpdateToken
— (String
)A unique identifier for each update to the policy. When issuing a
PutPolicy
request, thePolicyUpdateToken
in the request must match thePolicyUpdateToken
of the current policy version. To get thePolicyUpdateToken
of the current policy version, use aGetPolicy
request.SecurityServicePolicyData
— required — (map
)Details about the security service that is being used to protect the resources.
Type
— required — (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.
Possible values include:"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
)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\":[{\"ruleGroupId\":\"rslvr-frg-2\",\"priority\":9911}]}"
Note: Valid values forpreProcessRuleGroups
are between 1 and 99. Valid values forpostProcessRuleGroups
are between 9901 and 10000. -
Example:
IMPORT_NETWORK_FIREWALL
"{\"type\":\"IMPORT_NETWORK_FIREWALL\",\"awsNetworkFirewallConfig\":{\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-west-2:000000000000:stateless-rulegroup\/rg1\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:drop\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:pass\"],\"networkFirewallStatelessCustomActions\":[],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-west-2:aws-managed:stateful-rulegroup\/ThreatSignaturesEmergingEventsStrictOrder\",\"priority\":8}],\"networkFirewallStatefulEngineOptions\":{\"ruleOrder\":\"STRICT_ORDER\"},\"networkFirewallStatefulDefaultActions\":[\"aws:drop_strict\"]}}"
"{\"type\":\"DNS_FIREWALL\",\"preProcessRuleGroups\":[{\"ruleGroupId\":\"rslvr-frg-1\",\"priority\":10}],\"postProcessRuleGroups\":[{\"ruleGroupId\":\"rslvr-frg-2\",\"priority\":9911}]}"
Note: Valid values forpreProcessRuleGroups
are between 1 and 99. Valid values forpostProcessRuleGroups
are between 9901 and 10000. -
Example:
NETWORK_FIREWALL
- Centralized deployment model"{\"type\":\"NETWORK_FIREWALL\",\"awsNetworkFirewallConfig\":{\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateless-rulegroup/test\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"customActionName\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"metricdimensionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateful-rulegroup/test\"}],\"networkFirewallLoggingConfiguration\":{\"logDestinationConfigs\":[{\"logDestinationType\":\"S3\",\"logType\":\"ALERT\",\"logDestination\":{\"bucketName\":\"s3-bucket-name\"}},{\"logDestinationType\":\"S3\",\"logType\":\"FLOW\",\"logDestination\":{\"bucketName\":\"s3-bucket-name\"}}],\"overrideExistingConfig\":true}},\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"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\",\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateless-rulegroup/test\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"customActionName\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"metricdimensionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateful-rulegroup/test\"}],\"networkFirewallOrchestrationConfig\":{\"singleFirewallEndpointPerVPC\":false,\"allowedIPV4CidrList\":[\"10.0.0.0/28\",\"192.168.0.0/28\"],\"routeManagementAction\":\"OFF\"},\"networkFirewallLoggingConfiguration\":{\"logDestinationConfigs\":[{\"logDestinationType\":\"S3\",\"logType\":\"ALERT\",\"logDestination\":{\"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\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"customActionName\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"metricdimensionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateful-rulegroup/test\"}],\"networkFirewallOrchestrationConfig\":{\"singleFirewallEndpointPerVPC\":false,\"allowedIPV4CidrList\":[\"10.0.0.0/28\",\"192.168.0.0/28\"],\"routeManagementAction\":\"MONITOR\",\"routeManagementTargetTypes\":[\"InternetGateway\"]},\"networkFirewallLoggingConfiguration\":{\"logDestinationConfigs\":[{\"logDestinationType\":\"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\",\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateless-rulegroup/test\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:forward_to_sfe\",\"fragmentcustomactionname\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"customActionName\", \"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"metricdimensionvalue\"}]}}},{\"actionName\":\"fragmentcustomactionname\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"fragmentmetricdimensionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateful-rulegroup/test\"}],\"networkFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{ \"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]},{\"availabilityZoneName\":\"us-east-1b\",\"allowedIPV4CidrList\":[ \"10.0.0.0/28\"]}]} },\"singleFirewallEndpointPerVPC\":false,\"allowedIPV4CidrList\":null,\"routeManagementAction\":\"OFF\",\"networkFirewallLoggingConfiguration\":{\"logDestinationConfigs\":[{\"logDestinationType\":\"S3\",\"logType\":\"ALERT\",\"logDestination\":{\"bucketName\":\"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 infirewallCreationConfig
, specify either theavailabilityZoneName
oravailabilityZoneId
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\",\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateless-rulegroup/test\",\"priority\":1}],\"networkFirewallStatelessDefaultActions\":[\"aws:forward_to_sfe\",\"customActionName\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"aws:forward_to_sfe\",\"fragmentcustomactionname\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"customActionName\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"metricdimensionvalue\"}]}}},{\"actionName\":\"fragmentcustomactionname\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"fragmentmetricdimensionvalue\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-east-1:123456789011:stateful-rulegroup/test\"}],\"networkFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]},{\"availabilityZoneName\":\"us-east-1b\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"singleFirewallEndpointPerVPC\":false,\"allowedIPV4CidrList\":null,\"routeManagementAction\":\"MONITOR\",\"routeManagementTargetTypes\":[\"InternetGateway\"],\"routeManagementConfig\":{\"allowCrossAZTrafficIfNoEndpoint\":true}},\"networkFirewallLoggingConfiguration\":{\"logDestinationConfigs\":[{\"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\":\"SECURITY_GROUPS_COMMON\",\"revertManualSecurityGroupChanges\":false,\"exclusiveResourceSecurityGroupManagement\":false, \"applyToAllEC2InstanceENIs\":false,\"securityGroups\":[{\"id\":\" sg-000e55995d61a06bd\"}]}"
-
Example:
SECURITY_GROUPS_COMMON
- Security group tag distribution""{\"type\":\"SECURITY_GROUPS_COMMON\",\"securityGroups\":[{\"id\":\"sg-000e55995d61a06bd\"}],\"revertManualSecurityGroupChanges\":true,\"exclusiveResourceSecurityGroupManagement\":false,\"applyToAllEC2InstanceENIs\":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
totrue
, otherwise Firewall Manager won't be able to create the policy. When you enablerevertManualSecurityGroupChanges
, 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_COMMON\",\"revertManualSecurityGroupChanges\":false,\"exclusiveResourceSecurityGroupManagement\":false, \"applyToAllEC2InstanceENIs\":false,\"includeSharedVPC\":true,\"securityGroups\":[{\"id\":\" sg-000e55995d61a06bd\"}]}"
-
Example:
SECURITY_GROUPS_CONTENT_AUDIT
"{\"type\":\"SECURITY_GROUPS_CONTENT_AUDIT\",\"securityGroups\":[{\"id\":\"sg-000e55995d61a06bd\"}],\"securityGroupAction\":{\"type\":\"ALLOW\"}}"
The security group action for content audit can be
ALLOW
orDENY
. ForALLOW
, all in-scope security group rules must be within the allowed range of the policy's security group rules. ForDENY
, 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\",\"deleteUnusedSecurityGroups\":true,\"coalesceRedundantSecurityGroups\":true}"
-
Example:
SHIELD_ADVANCED
with web ACL management"{\"type\":\"SHIELD_ADVANCED\",\"optimizeUnassociatedWebACL\":true}"
If you set
optimizeUnassociatedWebACL
totrue
, 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
tofalse
, 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\": {\"automaticResponseStatus\":\"ENABLED|IGNORED|DISABLED\", \"automaticResponseAction\":\"BLOCK|COUNT\"}, \"overrideCustomerWebaclClassic\":true|false, \"optimizeUnassociatedWebACL\":true|false}"
For example:
"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": {\"automaticResponseStatus\":\"ENABLED\", \"automaticResponseAction\":\"COUNT\"}}"
The default value for
automaticResponseStatus
isIGNORED
. The value forautomaticResponseAction
is only required whenautomaticResponseStatus
is set toENABLED
. The default value foroverrideCustomerWebaclClassic
isfalse
.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,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"versionEnabled\":null,\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesATPRuleSet\",\"managedRuleGroupConfigs\":[{\"awsmanagedRulesATPRuleSet\":{\"loginPath\":\"/loginpath\",\"requestInspection\":{\"payloadType\":\"FORM_ENCODED|JSON\",\"usernameField\":{\"identifier\":\"/form/username\"},\"passwordField\":{\"identifier\":\"/form/password\"}}}}]},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[],\"sampledRequestsEnabled\":true},{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"versionEnabled\":null,\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesBotControlRuleSet\",\"managedRuleGroupConfigs\":[{\"awsmanagedRulesBotControlRuleSet\":{\"inspectionLevel\":\"TARGETED|COMMON\"}}]},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[],\"sampledRequestsEnabled\":true,\"ruleActionOverrides\":[{\"name\":\"Rule1\",\"actionToUse\":{\"allow|block|count|captcha|challenge\":{}}},{\"name\":\"Rule2\",\"actionToUse\":{\"allow|block|count|captcha|challenge\":{}}}]}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"customRequestHandling\":null,\"customResponse\":null,\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":null,\"sampledRequestsEnabledForDefaultActions\":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
totrue
, 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
tofalse
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 theName
of the rule to override, andActionToUse
, 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
andChallenge
configs"{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"versionEnabled\":null,\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesAdminProtectionRuleSet\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[],\"sampledRequestsEnabled\":true}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"customRequestHandling\":null,\"customResponse\":null,\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":null,\"sampledRequestsEnabledForDefaultActions\":true,\"captchaConfig\":{\"immunityTimeProperty\":{\"immunityTime\":500}},\"challengeConfig\":{\"immunityTimeProperty\":{\"immunityTime\":800}},\"tokenDomains\":[\"google.com\",\"amazon.com\"],\"associationConfig\":{\"requestBody\":{\"CLOUDFRONT\":{\"defaultSizeInspectionLimit\":\"KB_16\"}}}}"
-
CAPTCHA
andChallenge
configs - If you update the policy's values forassociationConfig
,captchaConfig
,challengeConfig
, ortokenDomains
, Firewall Manager will overwrite your local web ACLs to contain the new value(s). However, if you don't update the policy'sassociationConfig
,captchaConfig
,challengeConfig
, ortokenDomains
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"{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"versionEnabled\":true,\"version\":\"Version_2.0\",\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesCommonRuleSet\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[{\"name\":\"NoUserAgent_HEADER\"}]}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":{\"logDestinationConfigs\":[\"arn:aws:firehose:us-west-2:12345678912:deliverystream/aws-waf-logs-fms-admin-destination\"],\"redactedFields\":[{\"redactedFieldType\":\"SingleHeader\",\"redactedFieldValue\":\"Cookies\"},{\"redactedFieldType\":\"Method\"}]}}"
To use a specific version of a WAF managed rule group in your Firewall Manager policy, you must set
versionEnabled
totrue
, and setversion
to the version you'd like to use. If you don't setversionEnabled
totrue
, or if you omitversionEnabled
, 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\"},\"managedRuleGroupIdentifier\": {\"versionEnabled\":null,\"version\":null,\"vendorName\":\"AWS\", \"managedRuleGroupName\":\"AWSManagedRulesAdminProtectionRuleSet\"} ,\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[], \"sampledRequestsEnabled\":true}],\"postProcessRuleGroups\":[], \"defaultAction\":{\"type\":\"ALLOW\"},\"customRequestHandling\" :null,\"customResponse\":null,\"overrideCustomerWebACLAssociation\" :false,\"loggingConfiguration\":{\"logDestinationConfigs\": [\"arn:aws:s3:::aws-waf-logs-example-bucket\"] ,\"redactedFields\":[],\"loggingFilterConfigs\":{\"defaultBehavior\":\"KEEP\", \"filters\":[{\"behavior\":\"KEEP\",\"requirement\":\"MEETS_ALL\", \"conditions\":[{\"actionCondition\":\"CAPTCHA\"},{\"actionCondition\": \"CHALLENGE\"}, {\"actionCondition\":\"EXCLUDED_AS_COUNT\"}]}]}},\"sampledRequestsEnabledForDefaultActions\":true}"
Firewall Manager supports Amazon Kinesis Data Firehose and Amazon S3 as the
logDestinationConfigs
in yourloggingConfiguration
. For information about WAF logging configurations, see LoggingConfiguration in the WAF API ReferenceIn the
loggingConfiguration
, you can specify onelogDestinationConfigs
. Optionally provide as many as 20redactedFields
. TheRedactedFieldType
must be one ofURI
,QUERY_STRING
,HEADER
, orMETHOD
. -
Example:
WAF Classic
"{\"type\": \"WAF\", \"ruleGroups\": [{\"id\":\"12345678-1bcd-9012-efga-0987654321ab\", \"overrideAction\" : {\"type\": \"COUNT\"}}], \"defaultAction\": {\"type\": \"BLOCK\"}}"
-
PolicyOption
— (map
)Contains the settings to configure a network ACL policy, a Network Firewall firewall policy deployment model, or a third-party firewall policy.
NetworkFirewallPolicy
— (map
)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
Possible values include:NULL
."CENTRALIZED"
"DISTRIBUTED"
ThirdPartyFirewallPolicy
— (map
)Defines the policy options for a third-party firewall policy.
FirewallDeploymentModel
— (String
)Defines the deployment model to use for the third-party firewall policy.
Possible values include:"CENTRALIZED"
"DISTRIBUTED"
NetworkAclCommonPolicy
— (map
)Defines a Firewall Manager network ACL policy.
NetworkAclEntrySet
— required — (map
)The definition of the first and last rules for the network ACL policy.
FirstEntries
— (Array<map>
)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.
IcmpTypeCode
— (map
)ICMP protocol: The ICMP type and code.
Code
— (Integer
)ICMP code.
Type
— (Integer
)ICMP type.
Protocol
— required — (String
)The protocol number. A value of "-1" means all protocols.
PortRange
— (map
)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
— required — (String
)Indicates whether to allow or deny the traffic that matches the rule.
Possible values include:"allow"
"deny"
Egress
— required — (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
— required — (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
— (Array<map>
)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.
IcmpTypeCode
— (map
)ICMP protocol: The ICMP type and code.
Code
— (Integer
)ICMP code.
Type
— (Integer
)ICMP type.
Protocol
— required — (String
)The protocol number. A value of "-1" means all protocols.
PortRange
— (map
)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
— required — (String
)Indicates whether to allow or deny the traffic that matches the rule.
Possible values include:"allow"
"deny"
Egress
— required — (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
— required — (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
— required — (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 aResourceTypeList
.The following are valid resource types for each Firewall Manager policy type:
-
Amazon Web Services WAF Classic -
AWS::ApiGateway::Stage
,AWS::CloudFront::Distribution
, andAWS::ElasticLoadBalancingV2::LoadBalancer
. -
WAF -
AWS::ApiGateway::Stage
,AWS::ElasticLoadBalancingV2::LoadBalancer
, andAWS::CloudFront::Distribution
. -
Shield Advanced -
AWS::ElasticLoadBalancingV2::LoadBalancer
,AWS::ElasticLoadBalancing::LoadBalancer
,AWS::EC2::EIP
, andAWS::CloudFront::Distribution
. -
Network ACL -
AWS::EC2::Subnet
. -
Security group usage audit -
AWS::EC2::SecurityGroup
. -
Security group content audit -
AWS::EC2::SecurityGroup
,AWS::EC2::NetworkInterface
, andAWS::EC2::Instance
. -
DNS Firewall, Network Firewall, and third-party firewall -
AWS::EC2::VPC
.
-
ResourceTypeList
— (Array<String>
)An array of
ResourceType
objects. Use this only to specify multiple resource types. To specify a single resource type, useResourceType
.ResourceTags
— (Array<map>
)An array of
ResourceTag
objects.Key
— required — (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
— required — (Boolean
)If set to
True
, resources with the tags that are specified in theResourceTag
array are not in scope of the policy. If set toFalse
, and theResourceTag
array is not null, only resources with the specified tags are in scope of the policy.RemediationEnabled
— required — (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
— (map<Array<String>>
)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 theIncludeMap
, and does not evaluate anyExcludeMap
specifications. If you do not specify anIncludeMap
, then Firewall Manager applies the policy to all accounts except for those specified by theExcludeMap
.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”]}
.
-
ExcludeMap
— (map<Array<String>>
)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 theIncludeMap
, and does not evaluate anyExcludeMap
specifications. If you do not specify anIncludeMap
, then Firewall Manager applies the policy to all accounts except for those specified by theExcludeMap
.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”]}
.
-
ResourceSetIds
— (Array<String>
)The unique identifiers of the resource sets used by the policy.
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.
"ACTIVE"
"OUT_OF_ADMIN_SCOPE"
-
PolicyArn
— (String
)The Amazon Resource Name (ARN) of the policy.
-
(AWS.Response)
—
Returns:
putProtocolsList(params = {}, callback) ⇒ AWS.Request
Creates an Firewall Manager protocols list.
Service Reference:
Examples:
Calling the putProtocolsList operation
var params = {
ProtocolsList: { /* required */
ListName: 'STRING_VALUE', /* required */
ProtocolsList: [ /* required */
'STRING_VALUE',
/* more items */
],
CreateTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
LastUpdateTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
ListId: 'STRING_VALUE',
ListUpdateToken: 'STRING_VALUE',
PreviousProtocolsList: {
'<PreviousListVersion>': [
'STRING_VALUE',
/* more items */
],
/* '<PreviousListVersion>': ... */
}
},
TagList: [
{
Key: 'STRING_VALUE', /* required */
Value: 'STRING_VALUE' /* required */
},
/* more items */
]
};
fms.putProtocolsList(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ProtocolsList
— (map
)The details of the Firewall Manager protocols list to be created.
ListId
— (String
)The ID of the Firewall Manager protocols list.
ListName
— required — (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
— (Date
)The time that the Firewall Manager protocols list was created.
LastUpdateTime
— (Date
)The time that the Firewall Manager protocols list was last updated.
ProtocolsList
— required — (Array<String>
)An array of protocols in the Firewall Manager protocols list.
PreviousProtocolsList
— (map<Array<String>>
)A map of previous version numbers to their corresponding protocol arrays.
TagList
— (Array<map>
)The tags associated with the resource.
Key
— required — (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
— required — (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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ProtocolsList
— (map
)The details of the Firewall Manager protocols list.
ListId
— (String
)The ID of the Firewall Manager protocols list.
ListName
— required — (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
— (Date
)The time that the Firewall Manager protocols list was created.
LastUpdateTime
— (Date
)The time that the Firewall Manager protocols list was last updated.
ProtocolsList
— required — (Array<String>
)An array of protocols in the Firewall Manager protocols list.
PreviousProtocolsList
— (map<Array<String>>
)A map of previous version numbers to their corresponding protocol arrays.
ProtocolsListArn
— (String
)The Amazon Resource Name (ARN) of the protocols list.
-
(AWS.Response)
—
Returns:
putResourceSet(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the putResourceSet operation
var params = {
ResourceSet: { /* required */
Name: 'STRING_VALUE', /* required */
ResourceTypeList: [ /* required */
'STRING_VALUE',
/* more items */
],
Description: 'STRING_VALUE',
Id: 'STRING_VALUE',
LastUpdateTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
ResourceSetStatus: ACTIVE | OUT_OF_ADMIN_SCOPE,
UpdateToken: 'STRING_VALUE'
},
TagList: [
{
Key: 'STRING_VALUE', /* required */
Value: 'STRING_VALUE' /* required */
},
/* more items */
]
};
fms.putResourceSet(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceSet
— (map
)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
— required — (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
— required — (Array<String>
)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.
LastUpdateTime
— (Date
)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.
"ACTIVE"
"OUT_OF_ADMIN_SCOPE"
-
TagList
— (Array<map>
)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.
Key
— required — (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
— required — (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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ResourceSet
— (map
)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
— required — (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
— required — (Array<String>
)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.
LastUpdateTime
— (Date
)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.
"ACTIVE"
"OUT_OF_ADMIN_SCOPE"
-
ResourceSetArn
— (String
)The Amazon Resource Name (ARN) of the resource set.
-
(AWS.Response)
—
Returns:
tagResource(params = {}, callback) ⇒ AWS.Request
Adds one or more tags to an Amazon Web Services resource.
Service Reference:
Examples:
Calling the tagResource operation
var params = {
ResourceArn: 'STRING_VALUE', /* required */
TagList: [ /* required */
{
Key: 'STRING_VALUE', /* required */
Value: 'STRING_VALUE' /* required */
},
/* more items */
]
};
fms.tagResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)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
— (Array<map>
)The tags to add to the resource.
Key
— required — (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
— required — (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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
untagResource(params = {}, callback) ⇒ AWS.Request
Removes one or more tags from an Amazon Web Services resource.
Service Reference:
Examples:
Calling the untagResource operation
var params = {
ResourceArn: 'STRING_VALUE', /* required */
TagKeys: [ /* required */
'STRING_VALUE',
/* more items */
]
};
fms.untagResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)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
— (Array<String>
)The keys of the tags to remove from the resource.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns: