describeLogPattern method
Describe a specific log pattern from a LogPatternSet
.
May throw ResourceNotFoundException. May throw ValidationException. May throw InternalServerException.
Parameter patternName
:
The name of the log pattern.
Parameter patternSetName
:
The name of the log pattern set.
Parameter resourceGroupName
:
The name of the resource group.
Implementation
Future<DescribeLogPatternResponse> describeLogPattern({
required String patternName,
required String patternSetName,
required String resourceGroupName,
}) async {
ArgumentError.checkNotNull(patternName, 'patternName');
_s.validateStringLength(
'patternName',
patternName,
1,
50,
isRequired: true,
);
ArgumentError.checkNotNull(patternSetName, 'patternSetName');
_s.validateStringLength(
'patternSetName',
patternSetName,
1,
30,
isRequired: true,
);
ArgumentError.checkNotNull(resourceGroupName, 'resourceGroupName');
_s.validateStringLength(
'resourceGroupName',
resourceGroupName,
1,
256,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'EC2WindowsBarleyService.DescribeLogPattern'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'PatternName': patternName,
'PatternSetName': patternSetName,
'ResourceGroupName': resourceGroupName,
},
);
return DescribeLogPatternResponse.fromJson(jsonResponse.body);
}