batch_associate_resource
async
¶
batch_associate_resource(
resource_set_identifier: Identifier,
items: IdentifierList,
*,
config_overrides: Optional[AsyncFMSClientConfig] = None,
) -> BatchAssociateResourceResponse
Associate resources to a Firewall Manager resource set.
Parameters:
-
resource_set_identifier(Identifier) –A unique identifier for the resource set, used in a request to refer to the resource set.
-
items(IdentifierList) –The uniform resource identifiers (URIs) of resources that should be associated to the resource set. The URIs must be Amazon Resource Names (ARNs).
Raises:
-
InternalErrorException–The operation failed because of a system problem, even though the request was valid. Retry your request.
-
InvalidInputException–The parameters of the request were invalid.
-
InvalidOperationException–The operation failed because there was nothing to do or the operation wasn't possible. For example, you might have submitted an
AssociateAdminAccountrequest for an account ID that was already set as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by default, and that you need to enable for the Firewall Manager administrator account and for Organizations before you can access it. -
LimitExceededException–The operation exceeds a resource limit, for example, the maximum number of
policyobjects that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits in the WAF Developer Guide. -
ResourceNotFoundException–The specified resource was not found.
-
UnknownServiceError–The service returned an error code this client does not model.