describeFolder method

Future<DescribeFolderResponse> describeFolder({
  1. required String awsAccountId,
  2. required String folderId,
})

Describes a folder.

May throw AccessDeniedException. May throw InternalFailureException. May throw InvalidParameterValueException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw UnsupportedUserEditionException.

Parameter awsAccountId : The ID for the Amazon Web Services account that contains the folder.

Parameter folderId : The ID of the folder.

Implementation

Future<DescribeFolderResponse> describeFolder({
  required String awsAccountId,
  required String folderId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/accounts/${Uri.encodeComponent(awsAccountId)}/folders/${Uri.encodeComponent(folderId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeFolderResponse.fromJson(response);
}