updateGroupCertificateConfiguration method
Updates the Certificate expiry time for a group.
May throw BadRequestException. May throw InternalServerErrorException.
Parameter groupId
:
The ID of the Greengrass group.
Parameter certificateExpiryInMilliseconds
:
The amount of time remaining before the certificate expires, in
milliseconds.
Implementation
Future<UpdateGroupCertificateConfigurationResponse>
updateGroupCertificateConfiguration({
required String groupId,
String? certificateExpiryInMilliseconds,
}) async {
ArgumentError.checkNotNull(groupId, 'groupId');
final $payload = <String, dynamic>{
if (certificateExpiryInMilliseconds != null)
'CertificateExpiryInMilliseconds': certificateExpiryInMilliseconds,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/greengrass/groups/${Uri.encodeComponent(groupId)}/certificateauthorities/configuration/expiry',
exceptionFnMap: _exceptionFns,
);
return UpdateGroupCertificateConfigurationResponse.fromJson(response);
}