updateApplicationResourceLifecycle method
Future<ApplicationResourceLifecycleDescriptionMessage>
updateApplicationResourceLifecycle({
- required String applicationName,
- required ApplicationResourceLifecycleConfig resourceLifecycleConfig,
Modifies lifecycle settings for an application.
May throw InsufficientPrivilegesException.
Parameter applicationName
:
The name of the application.
Parameter resourceLifecycleConfig
:
The lifecycle configuration.
Implementation
Future<ApplicationResourceLifecycleDescriptionMessage>
updateApplicationResourceLifecycle({
required String applicationName,
required ApplicationResourceLifecycleConfig resourceLifecycleConfig,
}) async {
ArgumentError.checkNotNull(applicationName, 'applicationName');
_s.validateStringLength(
'applicationName',
applicationName,
1,
100,
isRequired: true,
);
ArgumentError.checkNotNull(
resourceLifecycleConfig, 'resourceLifecycleConfig');
final $request = <String, dynamic>{};
$request['ApplicationName'] = applicationName;
$request['ResourceLifecycleConfig'] = resourceLifecycleConfig;
final $result = await _protocol.send(
$request,
action: 'UpdateApplicationResourceLifecycle',
version: '2010-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['UpdateApplicationResourceLifecycleMessage'],
shapes: shapes,
resultWrapper: 'UpdateApplicationResourceLifecycleResult',
);
return ApplicationResourceLifecycleDescriptionMessage.fromXml($result);
}