updateDevicePolicyConfiguration method
Updates the device policy configuration for the fleet.
May throw UnauthorizedException. May throw InternalServerErrorException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw TooManyRequestsException.
Parameter fleetArn
:
The ARN of the fleet.
Parameter deviceCaCertificate
:
The certificate chain, including intermediate certificates and the root
certificate authority certificate used to issue device certificates.
Implementation
Future<void> updateDevicePolicyConfiguration({
required String fleetArn,
String? deviceCaCertificate,
}) async {
ArgumentError.checkNotNull(fleetArn, 'fleetArn');
_s.validateStringLength(
'fleetArn',
fleetArn,
20,
2048,
isRequired: true,
);
_s.validateStringLength(
'deviceCaCertificate',
deviceCaCertificate,
1,
32768,
);
final $payload = <String, dynamic>{
'FleetArn': fleetArn,
if (deviceCaCertificate != null)
'DeviceCaCertificate': deviceCaCertificate,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/updateDevicePolicyConfiguration',
exceptionFnMap: _exceptionFns,
);
}