describeSecurityProfile method

Future<DescribeSecurityProfileResponse> describeSecurityProfile({
  1. required String securityProfileName,
})

Gets information about a Device Defender security profile.

Requires permission to access the DescribeSecurityProfile action.

May throw InternalFailureException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter securityProfileName : The name of the security profile whose information you want to get.

Implementation

Future<DescribeSecurityProfileResponse> describeSecurityProfile({
  required String securityProfileName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/security-profiles/${Uri.encodeComponent(securityProfileName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeSecurityProfileResponse.fromJson(response);
}