Lists all packages associated with an Amazon OpenSearch Service domain. For more information, see Custom packages for Amazon OpenSearch Service.

See also: AWS API Documentation

Request Syntax

response = client.list_packages_for_domain(
  • DomainName (string) --


    The name of the domain for which you want to list associated packages.

  • MaxResults (integer) -- An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.
  • NextToken (string) -- If your initial ListPackagesForDomain operation returns a nextToken , you can include the returned nextToken in subsequent ListPackagesForDomain operations, which returns results in the next page.
Return type



Response Syntax

    'DomainPackageDetailsList': [
            'PackageID': 'string',
            'PackageName': 'string',
            'PackageType': 'TXT-DICTIONARY',
            'LastUpdated': datetime(2015, 1, 1),
            'DomainName': 'string',
            'PackageVersion': 'string',
            'ReferencePath': 'string',
            'ErrorDetails': {
                'ErrorType': 'string',
                'ErrorMessage': 'string'
    'NextToken': 'string'

Response Structure

  • (dict) --

    Container for the response parameters to the ListPackagesForDomain operation.

    • DomainPackageDetailsList (list) --

      List of all packages associated with a domain.

      • (dict) --

        Information about a package that is associated with a domain. For more information, see Custom packages for Amazon OpenSearch Service.

        • PackageID (string) --

          Internal ID of the package.

        • PackageName (string) --

          User-specified name of the package.

        • PackageType (string) --

          The type of package.

        • LastUpdated (datetime) --

          Timestamp of the most recent update to the package association status.

        • DomainName (string) --

          Name of the domain that the package is associated with.

        • DomainPackageStatus (string) --

          State of the association.

        • PackageVersion (string) --

          The current version of the package.

        • ReferencePath (string) --

          Denotes the location of the package on the OpenSearch Service cluster nodes. It's the same as synonym_path for dictionary files.

        • ErrorDetails (dict) --

          Additional information if the package is in an error state. Null otherwise.

          • ErrorType (string) --

            The type of error that occurred.

          • ErrorMessage (string) --

            A message describing the error.

    • NextToken (string) --

      When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.


  • OpenSearchService.Client.exceptions.BaseException
  • OpenSearchService.Client.exceptions.InternalException
  • OpenSearchService.Client.exceptions.ResourceNotFoundException
  • OpenSearchService.Client.exceptions.AccessDeniedException
  • OpenSearchService.Client.exceptions.ValidationException