deleteAutomaticTapeCreationPolicy method

Future<DeleteAutomaticTapeCreationPolicyOutput> deleteAutomaticTapeCreationPolicy({
  1. required String gatewayARN,
})

Deletes the automatic tape creation policy of a gateway. If you delete this policy, new virtual tapes must be created manually. Use the Amazon Resource Name (ARN) of the gateway in your request to remove the policy.

May throw InvalidGatewayRequestException. May throw InternalServerError.

Implementation

Future<DeleteAutomaticTapeCreationPolicyOutput>
    deleteAutomaticTapeCreationPolicy({
  required String gatewayARN,
}) async {
  ArgumentError.checkNotNull(gatewayARN, 'gatewayARN');
  _s.validateStringLength(
    'gatewayARN',
    gatewayARN,
    50,
    500,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'StorageGateway_20130630.DeleteAutomaticTapeCreationPolicy'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'GatewayARN': gatewayARN,
    },
  );

  return DeleteAutomaticTapeCreationPolicyOutput.fromJson(jsonResponse.body);
}