deleteLifecyclePolicy method

Future<void> deleteLifecyclePolicy({
  1. required String policyId,
})

Deletes the specified lifecycle policy and halts the automated operations that the policy specified.

May throw ResourceNotFoundException. May throw InternalServerException. May throw LimitExceededException.

Parameter policyId : The identifier of the lifecycle policy.

Implementation

Future<void> deleteLifecyclePolicy({
  required String policyId,
}) async {
  ArgumentError.checkNotNull(policyId, 'policyId');
  _s.validateStringLength(
    'policyId',
    policyId,
    0,
    64,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/policies/${Uri.encodeComponent(policyId)}/',
    exceptionFnMap: _exceptionFns,
  );
}