deleteHostedConfigurationVersion method
Delete a version of a configuration from the AppConfig configuration store.
May throw BadRequestException. May throw ResourceNotFoundException. May throw InternalServerException.
Parameter applicationId
:
The application ID.
Parameter configurationProfileId
:
The configuration profile ID.
Parameter versionNumber
:
The versions number to delete.
Implementation
Future<void> deleteHostedConfigurationVersion({
required String applicationId,
required String configurationProfileId,
required int versionNumber,
}) async {
ArgumentError.checkNotNull(applicationId, 'applicationId');
ArgumentError.checkNotNull(
configurationProfileId, 'configurationProfileId');
ArgumentError.checkNotNull(versionNumber, 'versionNumber');
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/applications/${Uri.encodeComponent(applicationId)}/configurationprofiles/${Uri.encodeComponent(configurationProfileId)}/hostedconfigurationversions/${Uri.encodeComponent(versionNumber.toString())}',
exceptionFnMap: _exceptionFns,
);
}