getLifecyclePolicy method

Future<GetLifecyclePolicyResponse> getLifecyclePolicy({
  1. required String policyId,
})

Gets detailed information about the specified lifecycle policy.

May throw InternalServerException. May throw LimitExceededException. May throw ResourceNotFoundException.

Parameter policyId : The identifier of the lifecycle policy.

Implementation

Future<GetLifecyclePolicyResponse> getLifecyclePolicy({
  required String policyId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/policies/${Uri.encodeComponent(policyId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetLifecyclePolicyResponse.fromJson(response);
}