getLifecyclePolicy method

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

Gets detailed information about the specified lifecycle policy.

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

Parameter policyId : The identifier of the lifecycle policy.

Implementation

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