describeDevicePolicyConfiguration method

Future<DescribeDevicePolicyConfigurationResponse> describeDevicePolicyConfiguration({
  1. required String fleetArn,
})

Describes the device policy configuration for the specified fleet.

May throw UnauthorizedException. May throw InternalServerErrorException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw TooManyRequestsException.

Parameter fleetArn : The ARN of the fleet.

Implementation

Future<DescribeDevicePolicyConfigurationResponse>
    describeDevicePolicyConfiguration({
  required String fleetArn,
}) async {
  ArgumentError.checkNotNull(fleetArn, 'fleetArn');
  _s.validateStringLength(
    'fleetArn',
    fleetArn,
    20,
    2048,
    isRequired: true,
  );
  final $payload = <String, dynamic>{
    'FleetArn': fleetArn,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/describeDevicePolicyConfiguration',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeDevicePolicyConfigurationResponse.fromJson(response);
}