rotateIngestEndpointCredentials method
Rotate the IngestEndpoint's username and password, as specified by the IngestEndpoint's id.
May throw UnprocessableEntityException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.
Parameter id
:
The ID of the channel the IngestEndpoint is on.
Parameter ingestEndpointId
:
The id of the IngestEndpoint whose credentials should be rotated
Implementation
Future<RotateIngestEndpointCredentialsResponse>
rotateIngestEndpointCredentials({
required String id,
required String ingestEndpointId,
}) async {
ArgumentError.checkNotNull(id, 'id');
ArgumentError.checkNotNull(ingestEndpointId, 'ingestEndpointId');
final response = await _protocol.send(
payload: null,
method: 'PUT',
requestUri:
'/channels/${Uri.encodeComponent(id)}/ingest_endpoints/${Uri.encodeComponent(ingestEndpointId)}/credentials',
exceptionFnMap: _exceptionFns,
);
return RotateIngestEndpointCredentialsResponse.fromJson(response);
}