describeProtectionGroup method
Future<DescribeProtectionGroupResponse>
describeProtectionGroup({
- required String protectionGroupId,
Returns the specification for the specified protection group.
May throw InternalErrorException. May throw ResourceNotFoundException.
Parameter protectionGroupId
:
The name of the protection group. You use this to identify the protection
group in lists and to manage the protection group, for example to update,
delete, or describe it.
Implementation
Future<DescribeProtectionGroupResponse> describeProtectionGroup({
required String protectionGroupId,
}) async {
ArgumentError.checkNotNull(protectionGroupId, 'protectionGroupId');
_s.validateStringLength(
'protectionGroupId',
protectionGroupId,
1,
36,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSShield_20160616.DescribeProtectionGroup'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ProtectionGroupId': protectionGroupId,
},
);
return DescribeProtectionGroupResponse.fromJson(jsonResponse.body);
}