batchGetLifecyclePolicy method
Future<BatchGetLifecyclePolicyResponse>
batchGetLifecyclePolicy({
- required List<
LifecyclePolicyIdentifier> identifiers,
Returns one or more configured OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.
May throw InternalServerException.
May throw ValidationException.
Parameter identifiers :
The unique identifiers of policy types and policy names.
Implementation
Future<BatchGetLifecyclePolicyResponse> batchGetLifecyclePolicy({
required List<LifecyclePolicyIdentifier> identifiers,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'OpenSearchServerless.BatchGetLifecyclePolicy'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'identifiers': identifiers,
},
);
return BatchGetLifecyclePolicyResponse.fromJson(jsonResponse.body);
}