updateAuditStreamConfiguration method
Updates the audit stream configuration for the fleet.
May throw UnauthorizedException. May throw InternalServerErrorException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw TooManyRequestsException.
Parameter fleetArn
:
The ARN of the fleet.
Parameter auditStreamArn
:
The ARN of the Amazon Kinesis data stream that receives the audit events.
Implementation
Future<void> updateAuditStreamConfiguration({
required String fleetArn,
String? auditStreamArn,
}) async {
ArgumentError.checkNotNull(fleetArn, 'fleetArn');
_s.validateStringLength(
'fleetArn',
fleetArn,
20,
2048,
isRequired: true,
);
final $payload = <String, dynamic>{
'FleetArn': fleetArn,
if (auditStreamArn != null) 'AuditStreamArn': auditStreamArn,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/updateAuditStreamConfiguration',
exceptionFnMap: _exceptionFns,
);
}