putSyslogConfiguration method
Creates or updates a syslog configuration for a log group. This enables ingestion of syslog data through the specified VPC endpoint into the log group.
May throw AccessDeniedException.
May throw InvalidOperationException.
May throw InvalidParameterException.
May throw OperationAbortedException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
May throw ThrottlingException.
Parameter logGroupIdentifier :
The name or ARN of the log group to associate with the syslog
configuration.
Parameter vpcEndpointId :
The ID of the VPC endpoint to use for syslog ingestion.
Implementation
Future<void> putSyslogConfiguration({
required String logGroupIdentifier,
String? vpcEndpointId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Logs_20140328.PutSyslogConfiguration'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'logGroupIdentifier': logGroupIdentifier,
if (vpcEndpointId != null) 'vpcEndpointId': vpcEndpointId,
},
);
}