putAppInstanceRetentionSettings method
Future<PutAppInstanceRetentionSettingsResponse>
putAppInstanceRetentionSettings({
- required String appInstanceArn,
- required AppInstanceRetentionSettings appInstanceRetentionSettings,
Sets the amount of time in days that a given AppInstance
retains data.
May throw BadRequestException.
May throw ForbiddenException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter appInstanceArn :
The ARN of the AppInstance.
Parameter appInstanceRetentionSettings :
The time in days to retain data. Data type: number.
Implementation
Future<PutAppInstanceRetentionSettingsResponse>
putAppInstanceRetentionSettings({
required String appInstanceArn,
required AppInstanceRetentionSettings appInstanceRetentionSettings,
}) async {
final $payload = <String, dynamic>{
'AppInstanceRetentionSettings': appInstanceRetentionSettings,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/app-instances/${Uri.encodeComponent(appInstanceArn)}/retention-settings',
exceptionFnMap: _exceptionFns,
);
return PutAppInstanceRetentionSettingsResponse.fromJson(response);
}