batchAssociateResource method
Associate resources to a Firewall Manager resource set.
May throw InternalErrorException.
May throw InvalidInputException.
May throw InvalidOperationException.
May throw LimitExceededException.
May throw ResourceNotFoundException.
Parameter items :
The uniform resource identifiers (URIs) of resources that should be
associated to the resource set. The URIs must be Amazon Resource Names
(ARNs).
Parameter resourceSetIdentifier :
A unique identifier for the resource set, used in a request to refer to
the resource set.
Implementation
Future<BatchAssociateResourceResponse> batchAssociateResource({
required List<String> items,
required String resourceSetIdentifier,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSFMS_20180101.BatchAssociateResource'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Items': items,
'ResourceSetIdentifier': resourceSetIdentifier,
},
);
return BatchAssociateResourceResponse.fromJson(jsonResponse.body);
}