updateThreatIntelSet method
Updates the ThreatIntelSet specified by the ThreatIntelSet ID.
May throw AccessDeniedException.
May throw BadRequestException.
May throw InternalServerErrorException.
Parameter detectorId :
The detectorID that specifies the GuardDuty service whose ThreatIntelSet
you want to update.
To find the detectorId in the current Region, see the
Settings page in the GuardDuty console, or run the ListDetectors
API.
Parameter threatIntelSetId :
The unique ID that specifies the ThreatIntelSet that you want to update.
Parameter activate :
The updated Boolean value that specifies whether the ThreateIntelSet is
active or not.
Parameter expectedBucketOwner :
The Amazon Web Services account ID that owns the Amazon S3 bucket
specified in the location parameter.
Parameter location :
The updated URI of the file that contains the ThreateIntelSet.
Parameter name :
The unique ID that specifies the ThreatIntelSet that you want to update.
Implementation
Future<void> updateThreatIntelSet({
required String detectorId,
required String threatIntelSetId,
bool? activate,
String? expectedBucketOwner,
String? location,
String? name,
}) async {
final $payload = <String, dynamic>{
if (activate != null) 'activate': activate,
if (expectedBucketOwner != null)
'expectedBucketOwner': expectedBucketOwner,
if (location != null) 'location': location,
if (name != null) 'name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/detector/${Uri.encodeComponent(detectorId)}/threatintelset/${Uri.encodeComponent(threatIntelSetId)}',
exceptionFnMap: _exceptionFns,
);
}