getLifecyclePolicy method
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);
}