putProtocolsList method
Future<PutProtocolsListResponse>
putProtocolsList({
- required ProtocolsListData protocolsList,
- List<
Tag> ? tagList,
Creates an AWS Firewall Manager protocols list.
May throw ResourceNotFoundException. May throw InvalidOperationException. May throw InvalidInputException. May throw LimitExceededException. May throw InternalErrorException.
Parameter protocolsList
:
The details of the AWS Firewall Manager protocols list to be created.
Parameter tagList
:
The tags associated with the resource.
Implementation
Future<PutProtocolsListResponse> putProtocolsList({
required ProtocolsListData protocolsList,
List<Tag>? tagList,
}) async {
ArgumentError.checkNotNull(protocolsList, 'protocolsList');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSFMS_20180101.PutProtocolsList'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ProtocolsList': protocolsList,
if (tagList != null) 'TagList': tagList,
},
);
return PutProtocolsListResponse.fromJson(jsonResponse.body);
}