getLifecyclePolicy method

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

Get details for the specified image lifecycle policy.

May throw CallRateLimitExceededException. May throw ClientException. May throw ForbiddenException. May throw InvalidRequestException. May throw ServiceException. May throw ServiceUnavailableException.

Parameter lifecyclePolicyArn : Specifies the Amazon Resource Name (ARN) of the image lifecycle policy resource to get.

Implementation

Future<GetLifecyclePolicyResponse> getLifecyclePolicy({
  required String lifecyclePolicyArn,
}) async {
  final $query = <String, List<String>>{
    'lifecyclePolicyArn': [lifecyclePolicyArn],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/GetLifecyclePolicy',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetLifecyclePolicyResponse.fromJson(response);
}