SearchTypesCommand

Searches for types in Amazon DataZone.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { DataZoneClient, SearchTypesCommand } from "@aws-sdk/client-datazone"; // ES Modules import
// const { DataZoneClient, SearchTypesCommand } = require("@aws-sdk/client-datazone"); // CommonJS import
const client = new DataZoneClient(config);
const input = { // SearchTypesInput
  domainIdentifier: "STRING_VALUE", // required
  maxResults: Number("int"),
  nextToken: "STRING_VALUE",
  searchScope: "ASSET_TYPE" || "FORM_TYPE" || "LINEAGE_NODE_TYPE", // required
  searchText: "STRING_VALUE",
  searchIn: [ // SearchInList
    { // SearchInItem
      attribute: "STRING_VALUE", // required
    },
  ],
  filters: { // FilterClause Union: only one key present
    filter: { // Filter
      attribute: "STRING_VALUE", // required
      value: "STRING_VALUE", // required
    },
    and: [ // FilterList
      {//  Union: only one key present
        filter: {
          attribute: "STRING_VALUE", // required
          value: "STRING_VALUE", // required
        },
        and: [
          "<FilterClause>",
        ],
        or: [
          "<FilterClause>",
        ],
      },
    ],
    or: [
      "<FilterClause>",
    ],
  },
  sort: { // SearchSort
    attribute: "STRING_VALUE", // required
    order: "ASCENDING" || "DESCENDING",
  },
  managed: true || false, // required
};
const command = new SearchTypesCommand(input);
const response = await client.send(command);
// { // SearchTypesOutput
//   items: [ // SearchTypesResultItems
//     { // SearchTypesResultItem Union: only one key present
//       assetTypeItem: { // AssetTypeItem
//         domainId: "STRING_VALUE", // required
//         name: "STRING_VALUE", // required
//         revision: "STRING_VALUE", // required
//         description: "STRING_VALUE",
//         formsOutput: { // FormsOutputMap // required
//           "<keys>": { // FormEntryOutput
//             typeName: "STRING_VALUE", // required
//             typeRevision: "STRING_VALUE", // required
//             required: true || false,
//           },
//         },
//         owningProjectId: "STRING_VALUE", // required
//         originDomainId: "STRING_VALUE",
//         originProjectId: "STRING_VALUE",
//         createdAt: new Date("TIMESTAMP"),
//         createdBy: "STRING_VALUE",
//         updatedAt: new Date("TIMESTAMP"),
//         updatedBy: "STRING_VALUE",
//       },
//       formTypeItem: { // FormTypeData
//         domainId: "STRING_VALUE", // required
//         name: "STRING_VALUE", // required
//         revision: "STRING_VALUE", // required
//         model: { // Model Union: only one key present
//           smithy: "STRING_VALUE",
//         },
//         status: "ENABLED" || "DISABLED",
//         owningProjectId: "STRING_VALUE",
//         originDomainId: "STRING_VALUE",
//         originProjectId: "STRING_VALUE",
//         createdAt: new Date("TIMESTAMP"),
//         createdBy: "STRING_VALUE",
//         description: "STRING_VALUE",
//         imports: [ // ImportList
//           { // Import
//             name: "STRING_VALUE", // required
//             revision: "STRING_VALUE", // required
//           },
//         ],
//       },
//       lineageNodeTypeItem: { // LineageNodeTypeItem
//         domainId: "STRING_VALUE", // required
//         name: "STRING_VALUE",
//         description: "STRING_VALUE",
//         createdAt: new Date("TIMESTAMP"),
//         createdBy: "STRING_VALUE",
//         updatedAt: new Date("TIMESTAMP"),
//         updatedBy: "STRING_VALUE",
//         revision: "STRING_VALUE", // required
//         formsOutput: { // required
//           "<keys>": {
//             typeName: "STRING_VALUE", // required
//             typeRevision: "STRING_VALUE", // required
//             required: true || false,
//           },
//         },
//       },
//     },
//   ],
//   nextToken: "STRING_VALUE",
//   totalMatchCount: Number("int"),
// };

SearchTypesCommand Input

See SearchTypesCommandInput for more details

Parameter
Type
Description
domainIdentifier
Required
string | undefined

The identifier of the Amazon DataZone domain in which to invoke the SearchTypes action.

managed
Required
boolean | undefined

Specifies whether the search is managed.

searchScope
Required
TypesSearchScope | undefined

Specifies the scope of the search for types.

filters
FilterClause | undefined

The filters for the SearchTypes action.

maxResults
number | undefined

The maximum number of results to return in a single call to SearchTypes. When the number of results to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to SearchTypes to list the next set of results.

nextToken
string | undefined

When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to SearchTypes to list the next set of results.

searchIn
SearchInItem[] | undefined

The details of the search.

searchText
string | undefined

Specifies the text for which to search.

sort
SearchSort | undefined

The specifies the way to sort the SearchTypes results.

SearchTypesCommand Output

See SearchTypesCommandOutput for details

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
items
SearchTypesResultItem[] | undefined

The results of the SearchTypes action.

nextToken
string | undefined

When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to SearchTypes to list the next set of results.

totalMatchCount
number | undefined

Total number of search results.

Throws

Name
Fault
Details
AccessDeniedException
client

You do not have sufficient access to perform this action.

InternalServerException
server

The request has failed because of an unknown error, exception or failure.

ThrottlingException
client

The request was denied due to request throttling.

ValidationException
client

The input fails to satisfy the constraints specified by the Amazon Web Services service.

UnauthorizedException
client

You do not have permission to perform this action.

DataZoneServiceException
Base exception class for all service exceptions from DataZone service.