// Gets all entity types or a specific entity type if a name is specified. This is
// a paginated API. If you provide a null maxResults, this action retrieves a
// maximum of 10 records per page. If you provide a maxResults, the value must be
// between 5 and 10. To get the next page results, provide the pagination token
// from the GetEntityTypesResponse as part of your request. A null pagination token
// fetches the records from the beginning.
Gets all entity types or a specific entity type if a name is specified. This is
a paginated API. If you provide a null maxResults, this action retrieves a
maximum of 10 records per page. If you provide a maxResults, the value must be
between 5 and 10. To get the next page results, provide the pagination token
from the GetEntityTypesResponse as part of your request. A null pagination token
fetches the records from the beginning.
// Gets all entity types or a specific entity type if a name is specified . This is // a paginated API . If you provide a null maxResults this action retrieves a // maximum of 10 records per page . If you provide a maxResults the value must be // between 5 and 10 . To get the next page results provide the pagination token // from the GetEntityTypesResponse as part of your request . A null pagination token // fetches the records from the beginning .
func (c *Client) GetEntityTypes(ctx context.Context, params *GetEntityTypesInput, optFns ...func(*Options)) (*GetEntityTypesOutput, error) {
	if params == nil {
		params = &GetEntityTypesInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "GetEntityTypes", params, optFns, addOperationGetEntityTypesMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*GetEntityTypesOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) GetEntityTypes ( ctx context . Context , params * GetEntityTypesInput , optFns ... func ( * Options ) ) ( * GetEntityTypesOutput , error ) { if params == nil { params = & GetEntityTypesInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationGetEntityTypesMiddlewares ) if err != nil { return nil , err } out := result . ( * GetEntityTypesOutput ) out . ResultMetadata = metadata return out , nil }
Gets all entity types or a specific entity type if a name is specified.
Gets all entity types or a specific entity type if a name is specified .