listAutomaticTapeCreationPolicies method
Future<ListAutomaticTapeCreationPoliciesOutput>
listAutomaticTapeCreationPolicies({
- String? gatewayARN,
Lists the automatic tape creation policies for a gateway. If there are no automatic tape creation policies for the gateway, it returns an empty list.
This operation is only supported for tape gateways.
May throw InvalidGatewayRequestException. May throw InternalServerError.
Implementation
Future<ListAutomaticTapeCreationPoliciesOutput>
listAutomaticTapeCreationPolicies({
String? gatewayARN,
}) async {
_s.validateStringLength(
'gatewayARN',
gatewayARN,
50,
500,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target':
'StorageGateway_20130630.ListAutomaticTapeCreationPolicies'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (gatewayARN != null) 'GatewayARN': gatewayARN,
},
);
return ListAutomaticTapeCreationPoliciesOutput.fromJson(jsonResponse.body);
}